Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

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.