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

hrh747's avatar
hrh747
Helpful | Level 5
4 years ago
Solved

The given OAuth 2 access token is malformed.

Hi,   Previously, I had saved the OAuth 2 access token in a variable in my Python code, and I was able to use the token to connect and download files from my Dropbox folders. However, I decided t...
  • Здравко's avatar
    4 years ago

    Hi hrh747,

    Since you have your access token checked and it's working, seems you have saved the token in wrong way and/or improperly read it within your code. The best way for debug this case, I think, is to "resurrect" the variable you did use before, so there would be reference value. Compare value you are reading from file to the reference one. Does they match? 🤔 If need, compare the values symbol by symbol to find out where precisely the difference is. 😉 By the way, have you stripped blanks on read?

    Hope this gives right direction.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers809 PostsLatest Activity: 2 days ago
221 Following

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!