You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
daniel_e
8 years agoHelpful | Level 6
Strange python API error
I get a strange error when executing the following code-snippet:
sys.path.append('/home/pi/scripts/qr-scripts') sys.path.append('/home/pi/Raw') import session_folder import session_folder_name response = db.files_list_folder(session_folder_name.sessionFolderName) for file in response.entries:
This is the error-output
Traceback (most recent call last): File "/home/pi/scripts/qr-scripts/dropbox_qrcodes_watchdog.py", line 77, in <module> response = db.files_list_folder(session_folder_name.sessionFolderName) File "/usr/local/lib/python3.4/dist-packages/dropbox/base.py", line 715, in files_list_folder None, File "/usr/local/lib/python3.4/dist-packages/dropbox/dropbox.py", line 256, in request user_message_locale) dropbox.exceptions.ApiError: ApiError('9f5d41127c911dc312a3938fbe57f464', ListFolderError('path', LookupError('not_found', None)))
I am really not getting the problem... Can anyone help?
I am sorry. Found the mistake. My fault!
I tried to download something from a dropbox-folder, that doesn't yet exist by the time, the script is being executed.
- daniel_eHelpful | Level 6
I am sorry. Found the mistake. My fault!
I tried to download something from a dropbox-folder, that doesn't yet exist by the time, the script is being executed.
- EdDropbox StaffWould you mind taking a minute of your time to fill out a survey sharing your experience using our Dropbox Community? You can access it here: http://bit.ly/2lNKIxT
Thank you! - akashjeezNew member | Level 2
what isthe solution?
- Greg-DBDropbox Staff
akashjeez The original poster here indicated that the issue was that they were attempting to access the folder before the folder existed.
In general, the 'not_found' error means that the specified path doesn't exist.
If you're having trouble with the API, please open a new thread with the details of the issue.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf 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!