We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

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

ApiError

I'm trying to download a csv file from a dropbox folder by using dropbox API.

A new app, Aaa, was created. Their settings and permissions have been set up for the app.

The following code worked for an app, 'Aaa', in dropbox developer.

 

dbx = dropbox.Dropbox(TOKEN)

dbx_path = '/Aaa'

result = dbx.files_list_folder(dbx_path, recursive=True)

 

However, when I created another app, let's say 'Bbb', the above code gave an ApiError as follows.

 

ApiError: ApiError('c51f8163eb874279a87d2242a933b43e', ListFolderError('path', LookupError('not_found', None)))

 

I created even another app, let's say 'Ccc'. The same ApiError message showed up.

When I switched the TOKEN and dbx_path back to those of the app, Aaa, everything worked ok.

I've been spending all day on solving this error. What is wrong here?

Thank you for your help in advance

 

1 Reply

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

    What kind of access do each of the apps have? For instance, it sounds like apps "Bbb" and "Ccc" may be registered for the "app folder" access type, so they'd only have access to the contents of the special app folder that gets created for them when connected to an account, not anything else already in the account.

     

    When you use an access token for an app folder app and try to access a particular path, that path will be interpreted relative to the app folder for that app. For example, if you send "/Some Folder" it would be interpreted as "/Apps/<APP FOLDER NAME>/Some Folder".

     

    So, if you used an access token for an app folder app to try to access a folder in the actual root of the account, for instance, it would fail like this because it would only see the contents of the app folder.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 9 hours ago
277 Following

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 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!