Forum Discussion

jorjbotezat's avatar
jorjbotezat
Explorer | Level 3
4 years ago

Cannot access shared file

Hi.

 

I try to get the temporary URL using the "get_temporary_link " with an id from a file that is shared with me and every time I got this response:

 

409: {"error_summary": "path/not_found/.", "error": {".tag": "path", "path": {".tag": "not_found"}}}.

 

If I share the folder of the file, the request will be successful. Did you change recently this flow?

 

I discovered also the download file is not working anymore. The endpoint that I tried is  "/files/download".

 

Have a nice day 

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    It sounds like you're attempting to call /2/files/get_temporary_link on a file that has been individually shared with you, i.e., a "received" file, such as listed by /2/sharing/list_received_files. As this isn't mounted anywhere in your account, this 'path/not_found' error is expected, since the file is not available in your account's file/folder structure and so cannot be accessed that way. This would also apply to /2/files/download. Adding a shared folder containing the file mounts that shared folder in your account, making the file available in your account, so the calls can then succeed.

     

    I don't believe this behavior changed recently. You can instead use /2/sharing/get_shared_link_file and pass in the "preview_url" (e.g., from /2/sharing/list_received_files) as the "url" to download the file though.

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

    jorjbotezat wrote:

    ...

    I try to get the temporary URL using the "get_temporary_link " ...

     

    If I share the folder of the file, the request will be successful. ...


    Hi jorjbotezat,

    Are you certain your description matches exactly what you have done? What actually means "folder of the file"? I'm assuming the folder is the one containing the file. In all cases /2/files/get_temporary_link can be used only for files!!! Trying to use it for a folder will result to error, something like:

    {
      "error_summary": "path/not_file/...",
      "error": {
        ".tag": "path",
        "path": {
          ".tag": "not_file"
        }
      }
    }

    Describe what actually you are doing and provide a way (exact steps - sequence of calls) to reproduce the issue (whatever it is). "not_found" usually means you're trying to point something that doesn't exist. Did you check that your file exists actually and the credentials (you use) have granted access to there?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!