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
RCR
8 years agoExplorer | Level 3
Python SDK constant errors
Trying to make a small app that will read a pair of files from a dropbox folder and compile a small database from them. Just getting started, following the sample but I keep getting errors of differe...
- 8 years agoIt looks like the ValueError issue is fixed in requests v2.17.1, so please update to that and let me know if you're still seeing any issues.
Greg-DB
8 years agoDropbox Staff
Thanks for writing in. Note that the first error is because non-root paths should start with a '/'. So, your path there should be "/testFolder", not "testFolder". The root path is identified by the empty path "".
The second error did start occurring with recent changes to the requests dependency. We're looking into that. As a workaround though, you can downgrade to requests v2.15.1.
The second error did start occurring with recent changes to the requests dependency. We're looking into that. As a workaround though, you can downgrade to requests v2.15.1.
- RCR8 years agoExplorer | Level 3
Thanks! By downgrading I have managed to run some of the API functions, but now I have another problem.
The app I started using has App Folder permissions (set to 'testFolder') and from what I can tell, the path used for endpoints is relative to that folder. So, if I want to list the contents of 'testFolder' I actually pass an empty path, correct?
Now, the issue is that I get an empty 'entries' array when I try to list the contents of 'testFolder' even though there is a file there.
I tested listing the contents of 'testFolder' with an app with 'Full Dropbox' permissions and it does list the file.Any idea what could be the issue?
- Greg-DB8 years agoDropbox StaffThat's correct, if your app has the "app folder" permission, everything your app does or "sees" is relative to the app folder itself. You would use "" to refer to the app folder itself, since it's your app's root, or "/subfolder", etc. to refer to something inside your app folder.
From your first paragraph, it sounds like "testFolder" is your app folder itself, so to list its contents you would use a path parameter of "". In your second paragraph, it sounds like you may be trying to specify "testFolder", which wouldn't be necessary. If you're still not seeing the expected results, please share the code and output.
Also, note that the full Dropbox version wouldn't be looking at the same files if you pass the same path string. I.e., using the path "/testFolder" would list the following folders, as seen on the Dropbox web site, for the respective permissions:
- full Dropbox: /testFolder
- app folder: /Apps/<app folder name>/testFolder- Greg-DB8 years agoDropbox StaffIt looks like the ValueError issue is fixed in requests v2.17.1, so please update to that and let me know if you're still seeing any issues.
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!