We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

arch2020's avatar
arch2020
Helpful | Level 5
5 years ago

Api error "LookupError" for sharing_create_shared_link_with_settings

Hi all, 

 

I am new to dropbox api. My problem is whenver I try to create an app folder from the app console, the connection never works and I keep receiving an error regarding to the path, see below:

 

ApiError: ApiError('187007dde9fb433ea831afd60b273b83', CreateSharedLinkWithSettingsError('path', LookupError('not_found', None)))

 

I am fully aware that app folder can only access the files inside the  the folder of the main app. Hence,  I embedded the file I want to access inside the app folder in dropbox . I am using the following code:

 

import dropbox

dbx = dropbox.Dropbox(<app token>)

shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Apps/App_Name/example.xlsx")
print (shared_link_metadata.url)

Any ideas on how to overcome this issue?

Your help is much appreciated, 

Thanks 

  • Hi arch2020,

    Try transform the path from "/Apps/App_Name/example.xlsx" to "/example.xlsx". Is this helps? 🤔

    Try to explain why. 😉

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

    Hi arch2020,

    Try transform the path from "/Apps/App_Name/example.xlsx" to "/example.xlsx". Is this helps? 🤔

    Try to explain why. 😉

    • arch2020's avatar
      arch2020
      Helpful | Level 5

      @

       

      It worked like magic. Thanks, it seems that with app folder, there is no need for referencing the name of the app, as the default location of the app, will always be the name of the app folder.  very grateful for your help, you saved me tons of tons and unnecessary hustle. 

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

        arch2020 wrote:

         

        ..., it seems that with app folder, there is no need for referencing the name of the app, as the default location of the app, will always be the name of the app folder.  ...

        🙂 Almost exactly! 👍

        Actually, the app' folder forms a namespace that become a root folder for access from the application side. 😉