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

FMRb's avatar
FMRb
Explorer | Level 3
2 years ago

get_temporary_link API responding 409 not_fount

Hi

I have created a Dropbox App in the App console with the permissions specified by the `get_temporary_link`.  The application I'm building goes through the following process:
1. Authenticating a user using Dropbox OAuth2

2. Obtaining the access_token

3. Selecting a file using Dropbox chooser

4. Obtaining a temporary link with API `get_temporary_link`, the body `path` for the API contains the file id coming from the Dropbox chooses response

The response from `get_temporary_link` API shows the following:
```
// HTTP 409
{
  "error_summary": "path/not_found/...",
  "error": {
    ".tag": "path",
  "path": {
    ".tag": "not_found"
  }
}
}
```
I know the file exists since I was able to choose it in step 3 (Dropbox chooser) of the process. Then, why do I get the `not_found` response? Do I need to change the access permission of the folder or file in Dropbox?

Thank you for your help

 

  • Hm..🤔 To be honest I don't understand what you mean here, but if that doesn't work for you for some reason then using get_temporary_link wouldn't work too (the links are the same when direct link is selected in options). In both cases they expire in 4 hours (both are temporary).

     

    About the error you got, check that the chooser and your application have the same access - the same account is authenticated, the same root is selected (in case of team account), application is NOT limited (to app folder for example), etc. If they have different "view" ability then it's normal something seen by one to stay invisible to other.

    Good luck.


  • FMRb wrote:

    ...

    3. Selecting a file using Dropbox chooser

    4. Obtaining a temporary link with API `get_temporary_link`, the body `path` for the API contains the file id coming from the Dropbox chooses response

    ...


    Hi FMRb,

    Why you need to make this call (get_temporary_link) in addition at all? 🤔 Selecting direct link does the same - you'll get this link within chooser response (and faster, and simpler). 😉

    Hope this helps.

    • FMRb's avatar
      FMRb
      Explorer | Level 3

      I want the application to show the content even after refreshing the page, that won't work if I need to rely on the user selecting the file through the Dropbox chooser. 
      Thanks for the quick reply

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        Hm..🤔 To be honest I don't understand what you mean here, but if that doesn't work for you for some reason then using get_temporary_link wouldn't work too (the links are the same when direct link is selected in options). In both cases they expire in 4 hours (both are temporary).

         

        About the error you got, check that the chooser and your application have the same access - the same account is authenticated, the same root is selected (in case of team account), application is NOT limited (to app folder for example), etc. If they have different "view" ability then it's normal something seen by one to stay invisible to other.

        Good luck.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days 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!