Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

tikvica12's avatar
tikvica12
Explorer | Level 4
3 years ago
Solved

Invalid access token

I'm creating a python kivy app which uploads one file to my dropbox and I want to deploy that app on android. When I run my python app on my pc, everything works fine. I manage to upload the file to my dropbox account using access token as intended. When I deploy the app on android using buildozer, I'm getting AuthError('invalid_access_token'). I'm totally new to all of this, but I can't figure out what I'm doing wrong. Also, after I run my app on android and get the error, the access token no longer works when the app is run on pc (getting the same error on pc as well). What could go wrong after deploying it on android?


  • Given that the access token no longer works even in the environment where it originally worked, it sounds like the access token was likely revoked.

     

    By default, Dropbox API access tokens for your app(s) don't become invalid and yield 'invalid_access_token' by themselves, but there a number of different ways that a Dropbox API access token can become invalid, including:
    Please review the above possibilities for information on why your tokens may be invalid. Let me know if none of these seem to apply though.

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Given that the access token no longer works even in the environment where it originally worked, it sounds like the access token was likely revoked.

     

    By default, Dropbox API access tokens for your app(s) don't become invalid and yield 'invalid_access_token' by themselves, but there a number of different ways that a Dropbox API access token can become invalid, including:
    Please review the above possibilities for information on why your tokens may be invalid. Let me know if none of these seem to apply though.
  • tikvica12's avatar
    tikvica12
    Explorer | Level 4
    3 years ago

    Hi Greg,

    I found the issue. It was due to publicly sharing on GitHub. Thanks for helping.

About Dropbox API Support & Feedback

Node avatar for 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!