We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
AmitDori
9 years agoNew member | Level 2
Python SDK undocumented error on file_upload()
Hi all, I'm having troubles uploading files using the file_upload method using Python's dropbox module. I've setup an app(giving it full access to my dropbox account, not just folder access) and cr...
Greg-DB
Dropbox Community Moderator
9 years agoThanks for the report! An InternalServerError can occur on any call, and just indicates that something failed on our side. When this occurs, the API doesn't return much information to the client, so you'll only get that error without any useful details. We're looking into this particular error, and I'll follow up here once I have an update on it for you.
For reference though, based on what I can see, it looks like there was something incorrect about the property you're trying to set. It looks like it may have been modified in the version of the code you set, but for example, make sure you specify the correct/exact field name.
By the way, to retrieve the metadata including the property groups, you'd need to call like this:
print(client.files_get_metadata("FILEPATH", include_property_groups=dropbox.file_properties.TemplateFilterBase.filter_some([TEMPLATE_ID])))Greg-DB
Dropbox Community Moderator
8 years agoWith the latest version of the Python SDK (currently 8.5.1) you should now receive a specific error when you try to set an incorrect property value (e.g., using the wrong field name).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!