I was testing my (on replit) website that uses dropbox for downloads. The website works fine, but when I click the download button, nothing downloads and this appears in the logs:
(BTW this is bash)
DropboxResponseError: Response failed with a 400 code
at /home/runner/Chocolate-Syrup-picker/src/node_modules/dropbox/cjs/src/response.js:34:11
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
status: 400,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
'cache-control': [Array],
'content-security-policy': [Array],
'x-content-type-options': [Array],
'content-type': [Array],
'accept-encoding': [Array],
date: [Array],
server: [Array],
'content-length': [Array],
'strict-transport-security': [Array],
'x-robots-tag': [Array],
'x-dropbox-response-origin': [Array],
'x-dropbox-request-id': [Array],
connection: [Array]
}
},
error: 'Error in call to API function "files/upload": The given OAuth 2 access token is malformed.'
}