You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

raRaRa's avatar
raRaRa
Helpful | Level 6
4 years ago

Issue with temporary link, related to refresh tokens?

Hi all.

 

I noticed this error when opening a temporary link that my app has recently created (under 1 hour), with the status code 410 (Gone).

{"error": "Unauthorized"}

 

However, I usually get "Not Found" error message when a temporary link has expired, but the newly created temporary link above shows the Unauthorized error when opening it.

{"error": "Not Found"}

 

I'm now wondering if this is related to refreshing access tokens, causing all previous temporary links to expire automatically. If that's the case, then I'd need to re-create hundreds of temporary links every time the access token is refreshed, which is not very friendly experience.

 

I hadn't noticed this issue until recently when I migrated to refreshing access tokens.

  • raRaRa First, for reference, note that performing a refresh does not itself invalidate any previous short-lived access tokens for that refresh token, or any temporary links created using those previous short-lived access tokens. However, due to how temporary links are implemented, they are reliant on the validity of the access token used to create them. That means that once a particular short-lived access token expires (or is revoked), any temporary links created by that access token will also become invalid (even if they have not yet expired themselves).

     

    So, in your case, you may want to proactively create a new short-lived access token when you need to create a new temporary link, so you can get about the full four hours on the temporary link. (Creating a new short-lived access token does not invalidate previous ones.)

     

    mhaind It sounds like you may be experiencing a different issue. This thread is referring to a problem using "temporary links" with the Dropbox API, but it sounds like you're running in to an issue using "shared links" with the Dropbox product itself. You should contact support for help with that.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 6 years ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!