We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
bszt123
7 months agoHelpful | Level 5
Dropbox API error with 500
Greetings, I am encountering the following error while calling the Dropbox API: InternalServerError('6c7329b49922471380831b2b3f2fb49c', 500, '{"error": "The server has either erred or is inca...
- 6 months ago
Yes, that error indicates an issue with the value passed to as_user. The as_user method requires a team member ID, not an email address. You can get team member IDs from team_members_get_info_v2 or team_members_list_v2 and team_members_list_continue_v2, for example.
Greg-DB
Dropbox Staff
Update: we confirmed this is related to sending an incorrect root for the account; in some cases the server would return a 500 instead of the expected 422 error. We've fixed that so it should be returning the proper 422 now. Please refer to the "Path Root Header Modes" documentation for information on that.
bszt123
6 months agoHelpful | Level 5
Thank you for the response.
Here is the code we are currently using to call the API:
self.dbx = dropbox.DropboxTeam(self.app_token).as_user(some_id) root_namespace_id = self.dbx.users_get_current_account().root_info.root_namespace_id result = self.dbx.files_list_folder(path)
When calling self.dbx.users_get_current_account(), we encounter the following error:
dropbox.exceptions.InternalServerError: InternalServerError('5fe3180d6a9a4c64a0e319c78f7693a7', 500, '')
Could you explain this issue? And if possible, please provide the correct method to call this.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 months agoIf 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!