<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436408#M23034</link>
    <description>&lt;P&gt;For context here's the code I am running&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;dbx = dropbox.Dropbox("MY TOKEN!!")
result = dbx.files_list_folder("", recursive=True)
while result.has_more:
result = dbx.files_list_folder_continue(result.cursor)
for entry in result.entries:&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2020 16:26:01 GMT</pubDate>
    <dc:creator>mhnakhuda</dc:creator>
    <dc:date>2020-07-10T16:26:01Z</dc:date>
    <item>
      <title>ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436393#M23032</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am getting the following error:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;C:\Python36\Dartfish\Scripts\python.exe C:/Workspace/COC-Dartfish/Dartfish/Dropbox_Download.py SBL

Traceback (most recent call last):
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\connectionpool.py", line 976, in _validate_conn
    conn.connect()
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\connection.py", line 370, in connect
    ssl_context=context,
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\util\ssl_.py", line 377, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Program Files\Python36\lib\ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "C:\Program Files\Python36\lib\ssl.py", line 817, in __init__
    self.do_handshake()
  File "C:\Program Files\Python36\lib\ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "C:\Program Files\Python36\lib\ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python36\Dartfish\lib\site-packages\requests\adapters.py", line 449, in send
    timeout=timeout
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "C:\Python36\Dartfish\lib\site-packages\urllib3\util\retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/download (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Workspace/COC-Dartfish/Dartfish/Dropbox_Download.py", line 95, in &amp;lt;module&amp;gt;
    dd = DropBoxDownload(args.sportscode)
  File "C:/Workspace/COC-Dartfish/Dartfish/Dropbox_Download.py", line 39, in __init__
    self.process_entries()
  File "C:/Workspace/COC-Dartfish/Dartfish/Dropbox_Download.py", line 84, in process_entries
    dbx.files_download_to_file(local_file, entry.path_lower)
  File "C:\Python36\Dartfish\lib\site-packages\dropbox\base.py", line 1238, in files_download_to_file
    None,
  File "C:\Python36\Dartfish\lib\site-packages\dropbox\dropbox.py", line 274, in request
    timeout=timeout)
  File "C:\Python36\Dartfish\lib\site-packages\dropbox\dropbox.py", line 365, in request_json_string_with_retry
    timeout=timeout)
  File "C:\Python36\Dartfish\lib\site-packages\dropbox\dropbox.py", line 449, in request_json_string
    timeout=timeout,
  File "C:\Python36\Dartfish\lib\site-packages\requests\sessions.py", line 578, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "C:\Python36\Dartfish\lib\site-packages\requests\sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Python36\Dartfish\lib\site-packages\requests\sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "C:\Python36\Dartfish\lib\site-packages\requests\adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/download (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Process finished with exit code 1&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To give you context, I am using a python library to download some files, this seemed to be working however I am not sure when it stopped working. However, I just tried this program on my windows 10 machine, and also a spare Linux machine with the same error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried the different solutions provided, but none of them seemed to have worked. If someone can help me out, that'd be really awesome. Appreciate your help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Running:&lt;BR /&gt;&lt;BR /&gt;dropbox 10.2.0&lt;BR /&gt;Python 3&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:19:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436393#M23032</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T19:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436402#M23033</link>
      <description>&lt;P&gt;It should say 3.6 instead of Python 3.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:00:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436402#M23033</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T16:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436408#M23034</link>
      <description>&lt;P&gt;For context here's the code I am running&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;dbx = dropbox.Dropbox("MY TOKEN!!")
result = dbx.files_list_folder("", recursive=True)
while result.has_more:
result = dbx.files_list_folder_continue(result.cursor)
for entry in result.entries:&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:26:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436408#M23034</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T16:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436461#M23038</link>
      <description>&lt;P&gt;I see from the stack trace that this error is&amp;nbsp;occurring during&amp;nbsp;files_download_to_file. I just gave that, as well as the other methods you included in the code snippet, a try with Python 3.6 and v10.2.0 of the&amp;nbsp;Dropbox Python library on Windows though and it worked fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you're getting would seem to indicate that the&amp;nbsp;Dropbox API servers aren't being served with a valid certificate, however that is not&amp;nbsp;the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything on your network connection, e.g., a proxy, firewall, anti-virus, or other such software that may be interfering with your connection to the&amp;nbsp;Dropbox API servers? For the&amp;nbsp;files_download_to_file method in particular, it would be to the content.dropboxapi.com host.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:13:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436461#M23038</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-07-10T19:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436467#M23039</link>
      <description>&lt;P&gt;Hi Greg,&lt;BR /&gt;&lt;BR /&gt;I am doing some research on my own on the side, the folder that i want to access is a shared folder, does that make any difference? Could that be the reason why I am not able to access the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:33:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436467#M23039</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T19:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436474#M23041</link>
      <description>&lt;P&gt;That shouldn't be the issue here. The&amp;nbsp;files_download_to_file method does allow you to download files from shared folders. Also, the error you're getting indicates an issue establishing&amp;nbsp;the secure TLS connection with the&amp;nbsp;Dropbox API servers, which occurs before the&amp;nbsp;Dropbox API itself validates the call or its parameters anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:44:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436474#M23041</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-07-10T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436482#M23042</link>
      <description>&lt;P&gt;This is really confusing now, so I am able to download these files manually, meaning going onto Dropbox from the browser and accessing the file and downloading them. However, I can't do it using python.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried everything, with VPN, without VPN, etc etc. Is there a way for me to manually add the certificate somehow for the handshake to happen?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:58:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436482#M23042</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T19:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436483#M23043</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox website uses a different host than the&amp;nbsp;Dropbox API, so unfortunately that's not a good test for this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Dropbox Python SDK already &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/dropbox/trusted-certs.crt" target="_self"&gt;includes and uses the correct certificates for the&amp;nbsp;Dropbox API servers&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 20:03:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436483#M23043</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-07-10T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436489#M23046</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There seems to be some firewall or some other permissions that were placed on the laptop by work, which caused us this issue. I tested the exact same program on my own personal laptop and it did the job that it was supposed to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your assistance, I truly appreciate your help. Have a great weekend.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;MN&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 20:39:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ssl-SSLError-SSL-CERTIFICATE-VERIFY-FAILED-certificate-verify/m-p/436489#M23046</guid>
      <dc:creator>mhnakhuda</dc:creator>
      <dc:date>2020-07-10T20:39:35Z</dc:date>
    </item>
  </channel>
</rss>

