Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
hhjj49
2 years agoNew member | Level 2
Malformed OAuth2 Access Token When Deployed to Vercel
So I just started using dropbox for a nextjs/react app and everything works fine exactly as it should when I run it locally, but when I deploy to vercel I get a 400 code and the 'Error in call to API...
hhjj49
2 years agoNew member | Level 2
I mean that I am sure that the access token is the same for each, and that the same code I am running locally which works, is the code which is deployed and not working. what could be different if the access token and code are the same?
Greg-DB
Dropbox Staff
2 years agoI don't have full context on your different environments of course, but there could be non-obvious differences, e.g., in the versions of the platform, programming language, network client, etc., being used, exactly how the access token is stored/retrieved, or so on, between the different environments.
To troubleshoot this, the next step would be for you to inspect the request being made from the deployed environment.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,959 PostsLatest Activity: 23 hours ago
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 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!