Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
scps950707
9 years agoExplorer | Level 4
python SDK error
similar problem here
My code
#!/usr/bin/env python
import dropbox
print(dropbox.__version__)
dbx = dropbox.Dropbox("my token here")
dbx.users_get_current_account()
output
$ ./dbox.py
7....
- 9 years ago
Thanks for trying that.
I did find this issue on the requests GitHub that indicates this should be fixed in 2.18.1 though:
https://github.com/requests/requests/issues/4160
Can you try adding the print statement in dropbox.py directly (i.e., our library, not your dbox.py) to see if it's somehow picking up a different version?
If that's what's happening you should also be able to see where it's coming from by printing requests.__file__ .
Greg-DB
Dropbox Community Moderator
6 years agokaamoo_api This should have been fixed by v2.18.1 of requests. It sounds like perhaps your app on your phone somehow isn't actually using that version. Can you try adding some logging to see what version is actually being used there?
kaamoo_api
6 years agoExplorer | Level 3
Hi again!
When i solved the problem woth requests 2.18.1, the next time that i use the app shows me this error:
11-05 12:15:52.071 5473 5509 I python : HTTPSConnectionPool(host='api.dropboxapi.com', port=443): Max retries exceeded with url: /2/users/get_current_account (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xe8b980a0>: Failed to establish a new connection: [Errno 7] No address associated with hostname'))
I dont understand what is the problem now.
Thanks in advance
Kaamoo_api
- Greg-DB6 years ago
Dropbox Community Moderator
kaamoo_api Based on the error "No address associated with hostname" it sounds like your system wasn't able to look up the Dropbox API hostname, which is 'api.dropboxapi.com'. You have the right hostname, and 'api.dropboxapi.com' is currently resolving properly, so it sounds like there's an issue with your DNS configuration. You'll need to debug that to see why your system isn't able to complete that lookup successfully. For instance, check what DNS server you're using and check that it's working properly.
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!