Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
kashiwagi_yhi
2 years agoExplorer | Level 3
Issue with userinfo API (400 Error)
Hello,
The userinfo API, which was working fine until yesterday, has suddenly stopped functioning. Every time I send a request to the API, I receive a 400 error.
Specifically, I am using the following endpoint:
Request URL: https://api.dropboxapi.com/2/openid/userinfo
Error message: 400 Bad Request
Response content: Error in call to API function "openid/userinfo": expected object, got null
I would like to know if this API has been deprecated or if there has been a change in its specifications. If there is any information regarding changes or deprecation, it would be very helpful. Additionally, any guidance on alternative methods or new API usage would be greatly appreciated.
Thank you for your assistance.
3 Replies
- Greg-DB2 years ago
Dropbox Community Moderator
Thanks for the report. We'll look into it.
It looks like sending "{}" (instead of "null") still works. Can you try sending "{}" instead of "null"?
- kashiwagi_yhi2 years agoExplorer | Level 3
Thank you for your reply.
I posted because I was unable to retrieve the username using the .Net SDK, which was previously working fine, and also could not retrieve it using the Dropbox API Explorer.
https://dropbox.github.io/dropbox-api-v2-explorer/#openid_userinfoIt appears to have been my mistake. I apologize for any inconvenience caused.
- Greg-DB2 years ago
Dropbox Community Moderator
We've updated this to support passing in "null".
About Discuss Dropbox Developer & API
Make connections with 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!