We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
ADoncel
6 years agoExplorer | Level 4
file_properties_properties_add() - InternalServerError('', 500, '')
Hello,
I'm using Python 3.6 and Dropbox API installed with pip under Linux 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux (WSL Ubuntu).
I...
- 6 years ago
Thanks! It looks like there's just a small issue in that code. The file_properties_properties_add method expects a list of 'PropertyGroup', so instead of:
dbx_api.file_properties_properties_add(p_target_file, property_group)
you should do:
dbx_api.file_properties_properties_add(p_target_file, [property_group])
Greg-DB
Dropbox Community Moderator
6 years agoThanks! It looks like there's just a small issue in that code. The file_properties_properties_add method expects a list of 'PropertyGroup', so instead of:
dbx_api.file_properties_properties_add(p_target_file, property_group)
you should do:
dbx_api.file_properties_properties_add(p_target_file, [property_group])
ADoncel
6 years agoExplorer | Level 4
That was the thing I was missing.
Thank you very much.
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!