Hi there,
I setup dropbox destination for my backups according to this blog post: Custom Backup Transport: Dropbox | cPanel Blog
The setup works fine for, well, for a while. The issue here is that, since some time last year, all dropbox access token automatically expire after a few hours or days.
That however stops WHM then to upload the backups to dropbox.
Is there a solution for this?
This is the error I'm getting:
Error: Validation for transport “Dropbox” failed: Could not upload test file: 2023-03-07T13:11:03 [WebService::Dropbox] [ERROR] https://content.dropboxapi.com/2/files/upload {"mode":"overwrite","path":"/validate.tmp-23433-1678216261.txt"} -> [401] {"error_summary": "expired_access_token/.", "error": {".tag": "expired_access_token"}} at /usr/local/share/perl5/WebService/Dropbox.pm line 184.
And this is what dropox says about it:
www.dropboxforum.com
dropbox.tech
I setup dropbox destination for my backups according to this blog post: Custom Backup Transport: Dropbox | cPanel Blog
The setup works fine for, well, for a while. The issue here is that, since some time last year, all dropbox access token automatically expire after a few hours or days.
That however stops WHM then to upload the backups to dropbox.
Is there a solution for this?
This is the error I'm getting:
Error: Validation for transport “Dropbox” failed: Could not upload test file: 2023-03-07T13:11:03 [WebService::Dropbox] [ERROR] https://content.dropboxapi.com/2/files/upload {"mode":"overwrite","path":"/validate.tmp-23433-1678216261.txt"} -> [401] {"error_summary": "expired_access_token/.", "error": {".tag": "expired_access_token"}} at /usr/local/share/perl5/WebService/Dropbox.pm line 184.
And this is what dropox says about it:

dropbox.exceptions.AuthError: expired access token
When I run an app I developed, I get an error. dropbox.exceptions.AuthError: AuthError('89ade68e26bd49d592d01bfbfae5659b', AuthError('expired_access_token', None)) What could be wrong with my OAuth code? def oauth_flow(): return DropboxOAuth2Flow( APP_KEY...

Migrating App Permissions and Access Tokens
Learn to migrate your legacy Dropbox app to the new scoped app model. This document guides you through permissions, scopes, short-lived tokens, and refresh tokens.
Last edited by a moderator: