We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Steven_R
4 years agoExplorer | Level 3
Corrupt OAuth2 Tokens
We did an integration with Dropbox about 2 years ago and it has been working quite well. However we have started having some issues where we get an error 422 no_permission when we make api calls for ...
Steven_R
4 years agoExplorer | Level 3
Thanks for the reply, but I don't think that is the issue.
We are very familiar with refresh/long/short lived tokens as we integrate with a number of other systems such as SharePoint/OneDrive/Google Drive and our system handles each of these situations without issue.
The dropbox clients who currently have long lived tokens are not having this issue at all.
The only clients who are experiencing the 422 error are those with short lived Dropbox tokens. The root id is stored for a user and it used every time for that user, which has been the case for the last 2 years without issue prior to short lived tokens.
a) We have a situation where a short lived token is issued, the rootid is provided and it works fine until it expires.
b) We get another token and use the same rootid but we will get the 422 error. The 422 error will happen every time until we get another token.
c) We then get another token and try again at which it either works or it doesn't as per a) or b).
The point being is that some shortlived tokens produce this error even when the call has the correct rootid and other tokens don't, even though the call (except for the token) is identical.
Greg-DB
Dropbox Community Moderator
4 years agoSteven_R We'll be happy to look into this specifically for you. Please open an API ticket here, with the following information:
- an affected account ID
- a sample HTTP request/response for a failure for that account, including both headers and body for both request and response, but redacting the access token itself
- a few additional 'X-Dropbox-Request-Id' response header values for these failures
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!