<?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: Unable to upload a small file (less than 20mb) due to timeout in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-upload-a-small-file-less-than-20mb-due-to-timeout/m-p/280233#M16993</link>
    <description>&lt;P&gt;Thanks for the report! We're looking into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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(ACCESS_TOKEN, timeout=None)&lt;/PRE&gt;
&lt;P&gt;Please let me know if that does or doesn't help.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 16:05:45 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-06-13T16:05:45Z</dc:date>
    <item>
      <title>Unable to upload a small file (less than 20mb) due to timeout</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-upload-a-small-file-less-than-20mb-due-to-timeout/m-p/280116#M16878</link>
      <description>&lt;P&gt;I'm trying to use the files_upload (through the Pythoon api) but I'm getting an error if the file is somewhat larger, but less than 20MB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation states that files_upload shouldn't be used for files larger than 150MB, which will be true for the files I'm trying to upload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use&amp;nbsp;files_upload_session_start, but the problem perrsists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error I get when trying to upload a 13,3MB file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen&lt;BR /&gt;chunked=chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request&lt;BR /&gt;conn.request(method, url, **httplib_request_kw)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1239, in request&lt;BR /&gt;self._send_request(method, url, body, headers, encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1285, in _send_request&lt;BR /&gt;self.endheaders(body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1234, in endheaders&lt;BR /&gt;self._send_output(message_body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1065, in _send_output&lt;BR /&gt;self.send(chunk)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 986, in send&lt;BR /&gt;self.sock.sendall(data)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 972, in sendall&lt;BR /&gt;v = self.send(byte_view[count:])&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 941, in send&lt;BR /&gt;return self._sslobj.write(data)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 642, in write&lt;BR /&gt;return self._sslobj.write(data)&lt;BR /&gt;socket.timeout: The write operation timed out&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\adapters.py", line 440, in send&lt;BR /&gt;timeout=timeout&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen&lt;BR /&gt;_stacktrace=sys.exc_info()[2])&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\util\retry.py", line 357, in increment&lt;BR /&gt;raise six.reraise(type(error), error, _stacktrace)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\packages\six.py", line 685, in reraise&lt;BR /&gt;raise value.with_traceback(tb)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen&lt;BR /&gt;chunked=chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request&lt;BR /&gt;conn.request(method, url, **httplib_request_kw)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1239, in request&lt;BR /&gt;self._send_request(method, url, body, headers, encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1285, in _send_request&lt;BR /&gt;self.endheaders(body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1234, in endheaders&lt;BR /&gt;self._send_output(message_body, encode_chunked=encode_chunked)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 1065, in _send_output&lt;BR /&gt;self.send(chunk)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\http\client.py", line 986, in send&lt;BR /&gt;self.sock.sendall(data)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 972, in sendall&lt;BR /&gt;v = self.send(byte_view[count:])&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 941, in send&lt;BR /&gt;return self._sslobj.write(data)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\ssl.py", line 642, in write&lt;BR /&gt;return self._sslobj.write(data)&lt;BR /&gt;urllib3.exceptions.ProtocolError: ('Connection aborted.', timeout('The write operation timed out',))&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File ".\dropboxapi.py", line 37, in &amp;lt;module&amp;gt;&lt;BR /&gt;uploader.uploadandDelete()&lt;BR /&gt;File ".\dropboxapi.py", line 29, in uploadandDelete&lt;BR /&gt;self.box.files_upload(f.read(), '/Sandbox/' + item, mute = True)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\dropbox\base.py", line 2207, in files_upload&lt;BR /&gt;f,&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\dropbox\dropbox.py", line 272, in request&lt;BR /&gt;timeout=timeout)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\dropbox\dropbox.py", line 363, in request_json_string_with_retry&lt;BR /&gt;timeout=timeout)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\dropbox\dropbox.py", line 447, in request_json_string&lt;BR /&gt;timeout=timeout,&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py", line 555, in post&lt;BR /&gt;return self.request('POST', url, data=data, json=json, **kwargs)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py", line 508, in request&lt;BR /&gt;resp = self.send(prep, **send_kwargs)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\sessions.py", line 618, in send&lt;BR /&gt;r = adapter.send(request, **kwargs)&lt;BR /&gt;File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\adapters.py", line 490, in send&lt;BR /&gt;raise ConnectionError(err, request=request)&lt;BR /&gt;requests.exceptions.ConnectionError: ('Connection aborted.', timeout('The write operation timed out',))&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-upload-a-small-file-less-than-20mb-due-to-timeout/m-p/280116#M16878</guid>
      <dc:creator>mvpetri</dc:creator>
      <dc:date>2019-05-29T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to upload a small file (less than 20mb) due to timeout</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-upload-a-small-file-less-than-20mb-due-to-timeout/m-p/280233#M16993</link>
      <description>&lt;P&gt;Thanks for the report! We're looking into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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(ACCESS_TOKEN, timeout=None)&lt;/PRE&gt;
&lt;P&gt;Please let me know if that does or doesn't help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:05:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Unable-to-upload-a-small-file-less-than-20mb-due-to-timeout/m-p/280233#M16993</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-13T16:05:45Z</dc:date>
    </item>
  </channel>
</rss>

