<?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: Python API Error Upload SSL in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294945#M17939</link>
    <description>&lt;DIV id="gt-res-c" class="g-unit"&gt;
&lt;DIV id="gt-res-p"&gt;
&lt;DIV id="gt-res-data"&gt;
&lt;DIV id="gt-res-wrap"&gt;
&lt;DIV id="gt-res-content"&gt;
&lt;DIV id="gt-res-dir-ctr" class="trans-verified-button-small" dir="ltr"&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;Gracias por el informe!&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Esto parece ser un problema cuando se utiliza el SDK de Dropbox Python con Python 3. Estamos investigando.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Como solución temporal, intente establecer un tiempo de espera ilimitado al construir su cliente de Dropbox, así:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;PRE&gt;dropbox.Dropbox(TOKEN, timeout=None)&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Disculpe nuestras traducciones Nuestras traducciones fueron creadas usando un traductor en línea. Nos gustaría apoyar todos los idiomas, pero actualmente no estamos equipados para hacerlo. Aquí está la versión en inglés:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Thanks for the report! This appears to be an issue when using the&amp;nbsp;Dropbox Python SDK with Python 3. We're looking into it.&lt;/P&gt;
&lt;P&gt;As a workaround, please try setting an unlimited timeout when constructing your&amp;nbsp;Dropbox client, like this:&lt;/P&gt;
&lt;PRE&gt;dropbox.Dropbox(TOKEN, timeout=None)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 13:35:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-08-31T13:35:57Z</dc:date>
    <item>
      <title>Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294854#M17935</link>
      <description>&lt;P&gt;Tengo el siguiente error cuando intento hacer upload de un archivo&amp;nbsp;utilizando el ejemplo de github &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/example/back-up-and-restore/backup-and-restore-example.py" target="_self"&gt;example/back-up-and-restore/backup-and-restore-example.py&lt;/A&gt;&amp;nbsp;archivos pequeños de 10Mb lo sube sin problemas pero uno de 20Mb ya salta el error&lt;/P&gt;&lt;P&gt;Versiones utilizadas en Windows 10 Pro x64 y Windows Server 2008R2:&lt;/P&gt;&lt;PRE&gt;python:3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
dropbox:9.0.0
requests:2.19.1
six:1.11.0&lt;/PRE&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1055, in _send_output
    self.send(chunk)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 977, in send
    self.sock.sendall(data)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 1012, in sendall
    v = self.send(byte_view[count:])
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 981, in send
    return self._sslobj.write(data)
ssl.SSLWantWriteError: The operation did not complete (write) (_ssl.c:2317)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 445, in send
    timeout=timeout
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\retry.py", line 398, 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/upload (Caused by SSLError(SSLWantWriteError(3, 'The operation did not complete (write) (_ssl.c:2317)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\upload-dropbox.py", line 105, in &amp;lt;module&amp;gt;
    uploadDropbox()
  File ".\upload-dropbox.py", line 30, in uploadDropbox
    dbx.files_upload(f.read(), BACKUPPATH, mode=WriteMode('overwrite'))
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\dropbox\base.py", line 2207, in files_upload
    f,
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\dropbox\dropbox.py", line 274, in request
    timeout=timeout)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\dropbox\dropbox.py", line 365, in request_json_string_with_retry
    timeout=timeout)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\dropbox\dropbox.py", line 449, in request_json_string
    timeout=timeout,
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 559, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 511, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/upload (Caused by SSLError(SSLWantWriteError(3, 'The operation did not complete (write) (_ssl.c:2317)')))&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294854#M17935</guid>
      <dc:creator>rgfpy</dc:creator>
      <dc:date>2019-05-29T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294855#M17936</link>
      <description>&lt;P&gt;Editando el&amp;nbsp; archivo&amp;nbsp;C:\Users\rgfpy\AppData\Local\Programs\Python\Python37\lib\site-packages\dropbox\dropbox.py en la línea 129 la variable&amp;nbsp;_DEFAULT_TIMEOUT que por default esta 30 segundos si aumento a más logra subir archivos de más tamaños pero un archivo de 200Mb o mas no sube&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 21:02:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294855#M17936</guid>
      <dc:creator>rgfpy</dc:creator>
      <dc:date>2018-08-30T21:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294945#M17939</link>
      <description>&lt;DIV id="gt-res-c" class="g-unit"&gt;
&lt;DIV id="gt-res-p"&gt;
&lt;DIV id="gt-res-data"&gt;
&lt;DIV id="gt-res-wrap"&gt;
&lt;DIV id="gt-res-content"&gt;
&lt;DIV id="gt-res-dir-ctr" class="trans-verified-button-small" dir="ltr"&gt;&lt;SPAN class="long_text"&gt;&lt;SPAN&gt;Gracias por el informe!&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Esto parece ser un problema cuando se utiliza el SDK de Dropbox Python con Python 3. Estamos investigando.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Como solución temporal, intente establecer un tiempo de espera ilimitado al construir su cliente de Dropbox, así:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;PRE&gt;dropbox.Dropbox(TOKEN, timeout=None)&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Disculpe nuestras traducciones Nuestras traducciones fueron creadas usando un traductor en línea. Nos gustaría apoyar todos los idiomas, pero actualmente no estamos equipados para hacerlo. Aquí está la versión en inglés:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Thanks for the report! This appears to be an issue when using the&amp;nbsp;Dropbox Python SDK with Python 3. We're looking into it.&lt;/P&gt;
&lt;P&gt;As a workaround, please try setting an unlimited timeout when constructing your&amp;nbsp;Dropbox client, like this:&lt;/P&gt;
&lt;PRE&gt;dropbox.Dropbox(TOKEN, timeout=None)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 13:35:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/294945#M17939</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-31T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713177#M31591</link>
      <description>&lt;P&gt;Hello, I am having the exact same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately your proposed fix did not fix the issue. Are there any updates to this?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 17:52:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713177#M31591</guid>
      <dc:creator>leojtonozzi</dc:creator>
      <dc:date>2023-09-12T17:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713195#M31592</link>
      <description>&lt;P&gt;Turns out this was an error on my end in the Python script. I believe it was from initializing the token multiple times, however, I am unsure exactly what caused the issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/23894221/upload-file-to-my-dropbox-from-python-script" target="_blank"&gt;https://stackoverflow.com/questions/23894221/upload-file-to-my-dropbox-from-python-script&lt;/A&gt;&amp;nbsp;I used the structure of the code found in the first answer here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:22:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713195#M31592</guid>
      <dc:creator>leojtonozzi</dc:creator>
      <dc:date>2023-09-12T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Error Upload SSL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713225#M31593</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1743615"&gt;@leojtonozzi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Recent versions support Python 3 already, so neither your issue nor the solution can be the same. You can try describe what exactly you are receiving to becomes a bit more clear what's wrong.&lt;/P&gt;&lt;P&gt;Something else: The thread you're looking on is pretty old! There are described practices that are deprecated already (long lived access token). The old tokens, if you have one, still work, but if you haven't such, forget what you have read. Find something newer...&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 21:23:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-API-Error-Upload-SSL/m-p/713225#M31593</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-09-12T21:23:10Z</dc:date>
    </item>
  </channel>
</rss>

