Forum Discussion

EstherCD's avatar
EstherCD
New member | Level 2
5 years ago

dropbox API error: SharedLinkWithSettingsError('path', LookupError('not_found', None)))

Hello

I am trying to create weblinks for files on my dropbox account. 

 

print(dbx.sharing_create_shared_link_with_settings("/Apps/Noemiephotos/test.jpg").url)

 

I am getting this error: SharedLinkWithSettingsError('path', LookupError('not_found', None)))

 

I also tried "/test.jpg" since the app only as permission to its folder. But it makes no difference

 

2 Replies

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

    Hi EstherCD,

    Are you sure the particular file is on place? 🤔 Is the same result when you use the API Explorer?

    You can check what's there with listing of content (again, using API Explorer). Use the same token (otherwise the context could differs)!

    What's the result? 🧐

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

    A 'path/not_found' error like this should indicate that there was nothing found at the specified path. When using an API app with the "app folder" access type like this, the app will only be able to access the contents of the special app folder that it's connected to. In that case, the app should use paths relative to that app folder, meaning it shouldn't send the "/Apps/Noemiephotos" portion. The path "/test.jpg" would be correct for a file named "test.jpg" in the root of the connected app folder.

     

    Здравко's suggestion of checking the file listing is a good idea to validate what's in the app folder that the app is connected to.

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!