We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
tronclue
4 years agoExplorer | Level 4
Error downloading files using the dropbox library in python
Hi,
I am trying to access the files in my shared folder (which I mount) using the python library. I keep getting the following error - dropbox.exceptions.BadInputError: BadInputError('xxxxxxxx', 'Error in call to API function "files/download": Must provide HTTP header "Dropbox-API-Arg" or URL parameter "arg".')
I am sure that I am using this correctly because it used to work till a couple of days ago. What would be the problem?
4 Replies
- Jay4 years ago
Dropbox Community Moderator
Hi tronclue, thanks for bringing this to our attention.
Just for clarification, are you accessing the Dropbox folder using the Dropbox API itself, or is Python accessing the local folder?
This will help me to assist further! - tronclue4 years agoExplorer | Level 4
I am using the dropbox API. To be specific, I am using the function:
dropbox.dropbox_client.Dropbox.files_download(path = xxx)
I was able to get the list the files using the Dropbox object but downloading caused errors while using the same object. I've also tried it with a new oauth token, but no progress on that end.
- Jay4 years ago
Dropbox Community Moderator
Thanks for the info, I'll move this thread to the appropriate forum for more specialist support. - Greg-DB4 years ago
Dropbox Community Moderator
Thanks for the report. This doesn't seem to reproduce for me though, so can you share:
- the version number of the Python SDK you're using
- the rest of the relevant code, e.g., how you're building your 'Dropbox' client object (but don't include your access/refresh token)
- a sample 'path' value
- several sample request IDs for these failures (the random 32 character string shown in the error object)
Feel free to open an API ticket if you'd prefer to share privately.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 9 months ago
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 or Facebook.
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!