Dear Dropbox Developer Team,
I have been using the Dropbox API with your Python SDK for approximately four years without any issues. However, since November 25th or December 1st, I started encountering AuthError exceptions related to invalid access tokens. My implementation has remained unchanged during this time.
I store tokens in a database and update them whenever the SDK retrieves a fresh one. Here is the relevant code snippet:

After refreshing the access token using check_and_refresh_access_token(), subsequent requests (such as to files_list_folder or files_get_temporary_link) proceed without issue. However, when a new instance of DBXManager is created and the token is still valid (i.e., not expired and therefore not refreshed), requests may fail with the following error:
dropbox.exceptions.AuthError: AuthError('a5dae06f271b404296dc9d254e75eb47', AuthError('invalid_access_token', None))
The only way to resolve this issue is to refresh the token again. As a temporary workaround, I am manually adjusting the token expiration in the database to force a refresh on the next instance creation.
I am trying to understand the root cause of this behavior:
- Was there any recent change to the Dropbox backend or API behavior that could explain this issue?
- If this is a problem on my end, could you help clarify why the same implementation worked flawlessly for years?
Thank you for your assistance. Please let me know if you need additional details about my setup or logs.