You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the path contains non-ASCII characters, attempting to upload or download files results in the following error: DropboxApi::Errors::HttpError: HTTP 400.
If you use the Dropbox-API-Arg header, you need to make it "HTTP header safe". This means using JSON-style "\uXXXX" escape codes for the character 0x7F and all non-ASCII characters.
Currently, the arguments are sent using JSON.dump(params) in DropboxApi::Endpoints::ContentDownload and DropboxApi::Endpoints::ContentUpload, which does not escape non-ASCII characters. This leads to the HTTP 400 error when non-ASCII characters are present in the path.
The text was updated successfully, but these errors were encountered:
When the path contains non-ASCII characters, attempting to upload or download files results in the following error:
DropboxApi::Errors::HttpError: HTTP 400
.According to the Dropbox documentation, arguments should be escaped to Unicode escape sequences like
\uXXXX
:https://www.dropbox.com/developers/reference/json-encoding
Currently, the arguments are sent using
JSON.dump(params)
inDropboxApi::Endpoints::ContentDownload
andDropboxApi::Endpoints::ContentUpload
, which does not escape non-ASCII characters. This leads to the HTTP 400 error when non-ASCII characters are present in the path.The text was updated successfully, but these errors were encountered: