Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Ranjodh S.
10 years agoNew member | Level 1
Error 4xx while downloading a file through API which has second word's intials H for eg. (DX Haley)
We are using Dropbox API with Oauth 2.0 to download a file, Its giving us the Error 4xx page. The name of the file is 'DX Haley'. It happens only when the second word in the file name start with let...
Steve M.
Dropbox Staff
10 years agoI can't reproduce this error. Here's what happens when I try it:
$ http get "https://api.dropbox.com/1/metadata/auto/Test test.txt" 'Authorization:Bearer <REDACTED>'
HTTP/1.1 200 OK
...
{"read_only": false, "revision": 47485, "bytes": 4, "thumb_exists": false, "rev": "b97d10f8d89e", "modified": "Thu, 02 Apr 2015 15:43:00 +0000", "mime_type": "text/plain", "size": "4 bytes", "path": "/Test test.txt", "is_dir": false, "modifier": null, "root": "dropbox", "client_mtime": "Thu, 02 Apr 2015 15:43:00 +0000", "icon": "page_white_text"}
$ http get "https://api.dropbox.com/1/metadata/auto/Test hest.txt" 'Authorization:Bearer <REDACTED>'
HTTP/1.1 200 OK
...
{"read_only": false, "revision": 47486, "bytes": 4, "thumb_exists": false, "rev": "b97e10f8d89e", "modified": "Thu, 02 Apr 2015 15:43:03 +0000", "mime_type": "text/plain", "size": "4 bytes", "path": "/Test hest.txt", "is_dir": false, "modifier": null, "root": "dropbox", "client_mtime": "Thu, 02 Apr 2015 15:43:03 +0000", "icon": "page_white_text"}
Could you share some more information?
- What programming language are you using?
- Are you using an OAuth or Dropbox library? If so, which one?
- What does
GetProperties.getDropBoxMedURI()return? - What's the exact value of
fileName(both in the successful and unsuccessful calls)? - What is the code for
OAuthBearerClientRequest, including itsbuildQueryMessagemethod? (Perhaps that's from a library?)
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!