We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

tikvica12's avatar
tikvica12
Explorer | Level 4
2 years ago

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.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

      Hi Greg,

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