Hello, I have created an APP for API uploads and have given the APP read/write permissions for files. I have run the dropbox configuration with my keys and tokens.
The command I run from my linux box is:
./dropbox_uploader.sh upload sr-s31-4.txt TAC/sr-s31-4.txt
The error I get is:
Some error occurred. rerun the script with "-d" option and check the output and logfile: /tmp/du_resp_debug.'
I have attempted to format the upload command multiple ways but the error remains the same.
Here's the error output from debug when running with -d:
HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Content-Security-Policy: sandbox allow-forms allow-scripts
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Accept-Encoding: identity,gzip
Date: Fri, 01 Apr 2022 21:51:20 GMT
Server: envoy
Content-Length: 158
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Robots-Tag: noindex, nofollow, noimageindex
Vary: Accept-Encoding
X-Dropbox-Response-Origin: far_remote
X-Dropbox-Request-Id: ee397548460f46b99728da9a31c68099
Error in call to API function "files/upload": Invalid authorization value in HTTP header "Authorization": "Bearer". Expecting "Bearer <oauth2-access-token>"