Discuss Dropbox Developer & API
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
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.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!