Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Sadsyndrome
4 years agoExplorer | Level 3
Python Dropbox API slow performance
Hello
Im not a professional programmer..I recently built an app on python running on raspberry pi for monitoring energy usage at home.
it all works fine, I was using Dropbox app to save photo ima...
Greg-DB
Dropbox Community Moderator
4 years agoThe route you get to the Dropbox servers may be different than the route to get to the servers for other services, so a comparison with other services may not be applicable.
Anyway, Dropbox does not offer the ability to debug this from the Dropbox servers. You'd need to do any debugging on your side.
Looking at the code itself, I don't see any issues. I just tried this script myself, plugging in my path and key/secret/refresh token values, and the script ran in 2 seconds to successfully upload a 1 MB file.
I see you're using the Python SDK, so the following code would enable additional debugging output which might be useful:
try:
import http.client as http_client
except ImportError:
# Python 2
import httplib as http_client
http_client.HTTPConnection.debuglevel = 1
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True
import urllib3
urllib3.add_stderr_logger()
Sadsyndrome
4 years agoExplorer | Level 3
Hi. Just a quick update in case it is useful.
I reinstalled dropbox using pip install. 3.5 mins download persisted.
rebooted rpi still no joy
tested over a different network ( my smartphone hotspot) same problem on that network
I ran tcpdump and saw the host name api.dropboxapi.com in amongst lots of traffic
I pinged that from rpi but dns response was ipv6 and no traffic flowed?
I disabled ipv6 on rpi and problem is fixed???
not sure why it worked yesterday?
unless my changes have coincided with something else?
my api shows 1000 hits a day on analytics, I don’t understand that either???? I love technology:)
thx for your prompt responses
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!