Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
daniel_e
9 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.
4 Replies
Replies have been turned off for this discussion
- daniel_e9 years agoHelpful | 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.
- Ed9 years ago
Dropbox Staff
Would 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! - akashjeez8 years agoNew member | Level 2
what isthe solution?
- Greg-DB8 years ago
Dropbox Community Moderator
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.
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, Facebook or Instagram.
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!