<?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 send file 150MB in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585098#M27248</link>
    <description>&lt;P&gt;I'm sending 30 mega, and it takes 20-30 minutes. Transferring takes a while.&lt;/P&gt;&lt;P&gt;the exception has been fixed by adding a timeout to requests.&lt;/P&gt;&lt;P&gt;Using the other batch method, wouldn't the transfer be better and even more agile?&lt;/P&gt;&lt;P&gt;fragment code:&lt;/P&gt;&lt;P&gt;var result = await client.Files.UploadSessionStartAsync(body: stream);&lt;BR /&gt;Console.WriteLine("Uploading session id {0}", result.SessionId);&lt;/P&gt;&lt;P&gt;sessionId = result.SessionId;&lt;BR /&gt;firstShip = false;&lt;/P&gt;&lt;P&gt;then open session&lt;BR /&gt;ulong offset = Convert.ToUInt64(chunkSize) * Convert.ToUInt64(totalShips);&lt;/P&gt;&lt;P&gt;UploadSessionCursor cursor = new UploadSessionCursor(sessionId, offset);&lt;/P&gt;&lt;P&gt;if (readBytes.Length &amp;lt; chunkSize)&lt;BR /&gt;{&lt;BR /&gt;var filePathInDropbox = new CommitInfo(soucedestin, mode: WriteMode.Overwrite.Instance);&lt;BR /&gt;var result = await client.Files.UploadSessionFinishAsync(cursor, filePathInDropbox, null, stream);&lt;/P&gt;&lt;P&gt;finish&lt;BR /&gt;await client.Files.UploadSessionAppendV2Async(cursor, body: stream);&lt;/P&gt;&lt;P&gt;Is something going unnoticed?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 17:06:05 GMT</pubDate>
    <dc:creator>Adair1</dc:creator>
    <dc:date>2022-03-21T17:06:05Z</dc:date>
    <item>
      <title>Error send file 150MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/584605#M27230</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to upload a file over 150MB, and I'm using api v2 by the client.Files.UploadSessionStartAsync(body: stream) process, and I always get a message:&lt;BR /&gt;Native library pre-loader is trying to load native SQLite library "C:\Users\xx\source\repos\ssxx\xxxx\bin\Debug\x64\SQLite.Interop.dll"...&lt;BR /&gt;"xxxxxxxxxx" (CLR v4.0.30319: xxxxx): Loaded "C:\Users\xxxxxx\source\repos\xxx\xxxx\bin\Debug\RestSharp.dll". Symbol loading ignored. The module is optimized and the debugger option 'Just My Code' is enabled.&lt;BR /&gt;"xxxxx" (CLR v4.0.30319: xxx): Loaded "C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll". Symbol loading ignored. The module is optimized and the debugger option 'Just My Code' is enabled.&lt;BR /&gt;"xxxxx" (CLR v4.0.30319: xxxxx): Loaded "C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll ". Symbol loading ignored. The module is optimized and the debugger option 'Just My Code' is enabled.&lt;BR /&gt;"xxxxx." (CLR v4.0.30319: xxxxxxx.): Loaded "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_en-BR_b77a5c561934e089\System .Windows.Forms.resources.dll". The module was created without symbols.&lt;BR /&gt;Thread 0x4120 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x133c was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x3c30 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x2234 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x156c was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x193c was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x3a04 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x44a0 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x3d64 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x1438 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x2b08 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x4674 was closed with code 0 (0x0).&lt;BR /&gt;Thread 0x42f4 was closed with code 0 (0x0).&lt;BR /&gt;"xxxxxx." (CLR v4.0.30319: xxxxxx.): Loaded "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http.resources\v4.0_4.0.0.0_en-BR_b03f5f7f11d50a3a\System .Net.Http.resources.dll". The module was created without symbols.&lt;BR /&gt;Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll&lt;BR /&gt;Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.dll&lt;BR /&gt;was closed with code 0 (0x0).&lt;BR /&gt;The program "[9984] XXXX" was closed with the code -1 (0xffffffff).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:16:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/584605#M27230</guid>
      <dc:creator>Adair1</dc:creator>
      <dc:date>2022-03-22T13:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error send file 150MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585053#M27243</link>
      <description>&lt;P&gt;A TaskCanceledException can occur if the connection times out. How much data are you attempting to upload in the UploadSessionStartAsync itself? That is, in your "stream" variable? (You mentioned you're attempting to upload a file larger than 150 MB; you should only be sending a part of that in each request though, e.g., in the UploadSessionStartAsync call.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, how long does it take after starting the call before this exception occurs for you? Is there anything that may be interfering with your connection to content.dropboxapi.com?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:41:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585053#M27243</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-21T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error send file 150MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585098#M27248</link>
      <description>&lt;P&gt;I'm sending 30 mega, and it takes 20-30 minutes. Transferring takes a while.&lt;/P&gt;&lt;P&gt;the exception has been fixed by adding a timeout to requests.&lt;/P&gt;&lt;P&gt;Using the other batch method, wouldn't the transfer be better and even more agile?&lt;/P&gt;&lt;P&gt;fragment code:&lt;/P&gt;&lt;P&gt;var result = await client.Files.UploadSessionStartAsync(body: stream);&lt;BR /&gt;Console.WriteLine("Uploading session id {0}", result.SessionId);&lt;/P&gt;&lt;P&gt;sessionId = result.SessionId;&lt;BR /&gt;firstShip = false;&lt;/P&gt;&lt;P&gt;then open session&lt;BR /&gt;ulong offset = Convert.ToUInt64(chunkSize) * Convert.ToUInt64(totalShips);&lt;/P&gt;&lt;P&gt;UploadSessionCursor cursor = new UploadSessionCursor(sessionId, offset);&lt;/P&gt;&lt;P&gt;if (readBytes.Length &amp;lt; chunkSize)&lt;BR /&gt;{&lt;BR /&gt;var filePathInDropbox = new CommitInfo(soucedestin, mode: WriteMode.Overwrite.Instance);&lt;BR /&gt;var result = await client.Files.UploadSessionFinishAsync(cursor, filePathInDropbox, null, stream);&lt;/P&gt;&lt;P&gt;finish&lt;BR /&gt;await client.Files.UploadSessionAppendV2Async(cursor, body: stream);&lt;/P&gt;&lt;P&gt;Is something going unnoticed?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 17:06:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585098#M27248</guid>
      <dc:creator>Adair1</dc:creator>
      <dc:date>2022-03-21T17:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error send file 150MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585114#M27249</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you were able to resolve the exception.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I understand your follow up questions though. Can you clarify? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 18:10:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-send-file-150MB/m-p/585114#M27249</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-21T18:10:06Z</dc:date>
    </item>
  </channel>
</rss>

