cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

Connection between EDD Dropbox File Store and Dropbox

Connection between EDD Dropbox File Store and Dropbox

forgethead
New member | Level 2

I have a problem with EDD Dropbox File Store and Dropbox connection.

I connect the Easy digital download Dropbox File Store plugin and it works perfectly but after a period of about 4/6 hours it disconnects then clicking on the download button gives the following error:

 

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.dropboxapi.com/2/files/get_temporary_link` resulted in a `401 Unauthorized` response: {"error_summary": "expired_access_token/", "error": {".tag": "expired_access_token"}} in /home/gplsuite/public_html/wp-content/plugins/edd-dropbox-file-store/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111 Stack trace: #0 /home/gplsuite/public_html/wp-content/plugins/edd-dropbox-file-store/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 /home/gplsuite/public_html/wp-content/plugins/edd-dropbox-file-store/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 /home/gplsuite/public_html/wp-content/plugins/edd-dropbox-file-store/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Res in /home/gplsuite/public_html/wp-content/plugins/edd-dropbox-file-store/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 111

There has been a critical error on this website.

 

Any ideas to solve this problem?

1 Reply 1

Rich
Super User II

@forgethead wrote:

I connect the Easy digital download Dropbox File Store plugin and it works perfectly but after a period of about 4/6 hours it disconnects ...


Dropbox has discontinued the use of long-lived access tokens. Authorization tokens only last 4 hours now. For applications that need longer access without re-authenticating, they need to use refresh tokens.

 

You need to contact the developer of the plugin and ask them to update it to use refresh tokens. Send them the following link:

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Rich Super User II
What do Dropbox user levels mean?