cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Would you some tips on how to search images on Dropbox? Get some expert advice from our very own Lainie right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Comments

Re: Invalid access token

Invalid access token

tikvica12
Explorer | Level 4

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?


1 Accepted Solution

Accepted Solutions

Re: Invalid access token

Greg-DB
Dropboxer

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.

View solution in original post

2 Replies 2

Re: Invalid access token

Greg-DB
Dropboxer

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.

Re: Invalid access token

tikvica12
Explorer | Level 4

Hi Greg,

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

Need more support?