cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Betreff: Strange python API error

Strange python API error

daniel_e
Helpful | Level 6
Go to solution

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?

1 Accepted Solution

Accepted Solutions

daniel_e
Helpful | Level 6
Go to solution

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.  

View solution in original post

4 Replies 4

daniel_e
Helpful | Level 6
Go to solution

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.  

Ed
Dropbox Staff
Go to solution
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!



Ed G
Community Manager @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so please mark it for some Kudos below. 
:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
:arrows_counterclockwise: Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

akashjeez
New member | Level 2
Go to solution

what isthe solution?

Greg-DB
Dropbox Staff
Go to solution

@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.

Need more support?