Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

NickW56's avatar
NickW56
New member | Level 2
3 years ago

NewConnectionError

I have recently started getting the following intermittent error when attempting to upload a CSV file to my Dropbox account from a python application running on a Raspberry Pi

 

HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/upload (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x74dd0790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Based on the "Temporary failure in name resolution" error, it appears this is an issue resolving the "content.dropboxapi.com" hostname. That is resolving successfully for me though, so please check on your DNS server to see what may be causing that failure. You may need to contact your network admin for help.

    • NickW56's avatar
      NickW56
      New member | Level 2

      Yes I have looked at that and I can't see anything that would block the DNS.  I have added google 8.8.8.8 to the appropriate file and I can successfully ping the host name.  If I run the python code manually it seems to work ok but when it runs on boot using rc.local (or other methods) it fails.

       

      Thanks for your help

      • NickW56's avatar
        NickW56
        New member | Level 2

        Just tried it again manually and got the same error, tried again a couple of minutes later and it ran ok so its probably nothing to do with how it is being run as I suggested earlier.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,928 PostsLatest Activity: 12 hours ago
338 Following

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 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!