Skip to content

Not working #598

@skorzennik

Description

@skorzennik

I downloaded the version avail as of today, configured it and I can run

./dropbox_uploader.sh info
Dropbox Uploader v1.0

 > Getting info... 

Name:           Sylvain Korzennik
UID:            dbid:AADTdP59nd0DeTMad7Srt-dMtWE_D1KLNaA
Email:          skorzennik@cfa.harvard.edu
Country:        US

and

./dropbox_uploader.sh space
Dropbox Uploader v1.0

 > Getting space usage info... 

Quota:  2560 Mb
Used:   1569 Mb
Free:   990 Mb

but the following fails

 ./dropbox_uploader.sh list
 > Listing "/"... FAILED

I modified the script to dump the $RESPONSE_FILE and it says

HTTP/2 401 
content-type: application/json
cache-control: no-cache
content-security-policy: sandbox allow-forms allow-scripts
www-authenticate: Bearer realm="Dropbox-API"
x-content-type-options: nosniff
x-dropbox-request-url: /2/files/list_folder
date: Thu, 06 Jun 2024 20:56:03 GMT
server: envoy
content-length: 106
x-dropbox-response-origin: far_remote
x-dropbox-request-id: 7aafeb32e1a946cf84ca759e06bf7081

{"error":{".tag":"missing_scope","required_scope":"files.metadata.read"},"error_summary":"missing_scope/"}

Some error occured. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_29560.hpc.

any idea what is going on?

PS: here is the diff for my 'hack'
1- make RESPONSE_FILE unique per user (avoid perm denied if $TMP_DIR/du_resp_debug exists and own by diff user
2- cat its content when FAILED, to avoid -d that is way too verbose IM(H)O

< RESPONSE_FILE="$TMP_DIR/du_resp_$RANDOM"
---
> RESPONSE_FILE="$TMP_DIR/du_resp_$RANDOM.$USER"
146c146
<     RESPONSE_FILE="$TMP_DIR/du_resp_debug"
---
>     RESPONSE_FILE="$TMP_DIR/du_resp_debug.$USER"
603a604
>         cat $RESPONSE_FILE
686a688
>                 cat $RESPONSE_FILE
715a718
>                 cat $RESPONSE_FILE
778a782
>                 cat $RESPONSE_FILE
894a899
>         cat $RESPONSE_FILE
942a948
>                 cat $RESPONSE_FILE
980a987
>         cat $RESPONSE_FILE
1011a1019
>         cat $RESPONSE_FILE
1042a1051
>         cat $RESPONSE_FILE
1072a1082
>         cat $RESPONSE_FILE       
1102a1113
>         cat $RESPONSE_FILE       
1124a1136
>         cat $RESPONSE_FILE      
1211a1224
>         cat $RESPONSE_FILE
1403a1417
>         cat $RESPONSE_FILE
1424a1439
>         cat $RESPONSE_FILE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions