<?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: Error to send larger file under python in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/469585#M23926</link>
    <description>&lt;P&gt;please refer this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/37397966/dropbox-api-v2-upload-large-files-using-python" target="_blank"&gt;https://stackoverflow.com/questions/37397966/dropbox-api-v2-upload-large-files-using-python&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 07:27:18 GMT</pubDate>
    <dc:creator>karthik_siddhu</dc:creator>
    <dc:date>2020-11-13T07:27:18Z</dc:date>
    <item>
      <title>Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254770#M14721</link>
      <description>&lt;P&gt;Hi Dropbox Team,&lt;/P&gt;&lt;P&gt;i'm using a script to send larger files (more 1 GB) but i have an error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script i use :&lt;/P&gt;&lt;PRE&gt;import dropbox, sys, os
dbx = dropbox.Dropbox('MY KEY')
file_path = 'My local file_path'
f = open(file_path, "rb")
file_size = os.path.getsize(file_path)
dest_path = 'My Dropbox dest_path'
CHUNK_SIZE = 4 * 1024 * 1024

if file_size &amp;lt;= CHUNK_SIZE:

    print(dbx.files_upload(f.read(), dest_path))

else:

    upload_session_start_result = dbx.files_upload_session_start(f.read(CHUNK_SIZE))
    cursor = dropbox.files.UploadSessionCursor(session_id=upload_session_start_result.session_id,
                                               offset=f.tell())
    commit = dropbox.files.CommitInfo(path=dest_path)

    while f.tell() &amp;lt; file_size:
        if ((file_size - f.tell()) &amp;lt;= CHUNK_SIZE):
            print(dbx.files_upload_session_finish(f.read(CHUNK_SIZE),
                                            cursor,
                                            commit))
        else:
            dbx.files_upload_session_append(f.read(CHUNK_SIZE),
                                            cursor.session_id,
                                            cursor.offset)
            cursor.offset = f.tell()&lt;/PRE&gt;&lt;P&gt;The error :&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "upload-bakcup-dropbox.py", line 31, in &amp;lt;module&amp;gt;
    print(dbx.files_upload(f.read(), dest_path))
  File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-0.0.0-py3.6.egg\dropbox\base.py", line 2076, in files_upload
    f,
  File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-0.0.0-py3.6.egg\dropbox\dropbox.py", line 256, in request
    user_message_locale)
dropbox.exceptions.ApiError: ApiError('ecbd1ad61a0596454c7943e4243d10a7', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('folder', None)), u
pload_session_id='AAAAAAAAAeBQJPdCxI5KAQ')))&lt;/PRE&gt;&lt;P&gt;Could you help me ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254770#M14721</guid>
      <dc:creator>Yann_PGS</dc:creator>
      <dc:date>2019-05-29T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254797#M14724</link>
      <description>This path/conflict/folder error indicates that the upload failed because there is already a folder at the path where you're trying to upload the file (specified by `dest_path` in your code):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.WriteConflictError" target="_blank"&gt;https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.WriteConflictError&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you're trying to upload the file into that folder, you'll need to include the full desired path, including the file name. E.g., `"/folder/file.ext"`, instead of just `"/folder"`.</description>
      <pubDate>Thu, 30 Nov 2017 15:10:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254797#M14724</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-30T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254801#M14725</link>
      <description>&lt;P&gt;Thanks Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it was only this &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:34:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254801#M14725</guid>
      <dc:creator>Yann_PGS</dc:creator>
      <dc:date>2017-11-30T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254814#M14726</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;have you a python script to easly sync a folder ?&lt;/P&gt;&lt;P&gt;This folder has subdirectories (1 level) and each subdirectories has multiple lager files.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 16:49:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254814#M14726</guid>
      <dc:creator>Yann_PGS</dc:creator>
      <dc:date>2017-11-30T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254820#M14727</link>
      <description>I don't know if it offers the exact logic you need, but this example app may be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py&lt;/A&gt;</description>
      <pubDate>Thu, 30 Nov 2017 17:50:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254820#M14727</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-30T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254878#M14733</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry i have an error with this script updown.py.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen&lt;BR /&gt; chunked=chunked)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 356, in _make_request&lt;BR /&gt; conn.request(method, url, **httplib_request_kw)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1065, in _send_output&lt;BR /&gt; self.send(chunk)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 986, in send&lt;BR /&gt; self.sock.sendall(data)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 965, in sendall&lt;BR /&gt; v = self.send(data[count:])&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 935, in send&lt;BR /&gt; return self._sslobj.write(data)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 636, in write&lt;BR /&gt; return self._sslobj.write(data)&lt;BR /&gt;socket.timeout: The write operation timed out&lt;BR /&gt;&lt;BR /&gt;During handling of the above exception, another exception occurred:&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 440, in send&lt;BR /&gt; timeout=timeout&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 649, in urlopen&lt;BR /&gt; _stacktrace=sys.exc_info()[2])&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen&lt;BR /&gt; chunked=chunked)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 356, in _make_request&lt;BR /&gt; conn.request(method, url, **httplib_request_kw)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\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\Administrateur\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1065, in _send_output&lt;BR /&gt; self.send(chunk)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 986, in send&lt;BR /&gt; self.sock.sendall(data)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 965, in sendall&lt;BR /&gt; v = self.send(data[count:])&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 935, in send&lt;BR /&gt; return self._sslobj.write(data)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 636, 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;BR /&gt;&lt;BR /&gt;During handling of the above exception, another exception occurred:&lt;BR /&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "updown.py", line 246, in &amp;lt;module&amp;gt;&lt;BR /&gt; main()&lt;BR /&gt; File "updown.py", line 107, in main&lt;BR /&gt; upload(dbx, fullname, folder, subfolder, name)&lt;BR /&gt; File "updown.py", line 184, in upload&lt;BR /&gt; mute=True)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-8.5.0-py3.6.egg\dropbox\base.py", line 2073, in files_upload&lt;BR /&gt; f,&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-8.5.0-py3.6.egg\dropbox\dropbox.py", line 234, in request&lt;BR /&gt; timeout=timeout)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-8.5.0-py3.6.egg\dropbox\dropbox.py", line 325, in request_json_string_with_retry&lt;BR /&gt; timeout=timeout)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\dropbox-8.5.0-py3.6.egg\dropbox\dropbox.py", line 409, in request_json_string&lt;BR /&gt; timeout=timeout,&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 549, in post&lt;BR /&gt; return self.request('POST', url, data=data, json=json, **kwargs)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 502, in request&lt;BR /&gt; resp = self.send(prep, **send_kwargs)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 612, in send&lt;BR /&gt; r = adapter.send(request, **kwargs)&lt;BR /&gt; File "C:\Users\Administrateur\AppData\Local\Programs\Python\Python36\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;/PRE&gt;
&lt;P&gt;I think it's the script i need.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 11:36:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254878#M14733</guid>
      <dc:creator>Yann_PGS</dc:creator>
      <dc:date>2017-12-01T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254934#M14740</link>
      <description>How big is the file you're trying to upload when this occurs? The updown sample doesn't use upload sessions, so it can only handle small files. For example, the 1 GB file you mentioned earlier would be too big. If you need it to support large files, you'll need to update it to use upload sessions.&lt;BR /&gt;&lt;BR /&gt;Otherwise, this might just indicate transient server/network issues. The Dropbox content servers are working properly in my testing right now though. If you're still seeing this, there may be something interfering with your connection. Do you have anything on your network connection, e.g., firewall or proxy, that may be preventing your app from successfully connecting to the Dropbox servers?</description>
      <pubDate>Fri, 01 Dec 2017 17:28:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/254934#M14740</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-01T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error to send larger file under python</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/469585#M23926</link>
      <description>&lt;P&gt;please refer this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/37397966/dropbox-api-v2-upload-large-files-using-python" target="_blank"&gt;https://stackoverflow.com/questions/37397966/dropbox-api-v2-upload-large-files-using-python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 07:27:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-to-send-larger-file-under-python/m-p/469585#M23926</guid>
      <dc:creator>karthik_siddhu</dc:creator>
      <dc:date>2020-11-13T07:27:18Z</dc:date>
    </item>
  </channel>
</rss>

