cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Learn all about how Alex on the Community team used Dropbox in college here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ApiError

ApiError

pythoncoder
New member | Level 2

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 1

Re: ApiError

Greg-DB
Dropboxer

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.

Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?