<?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 swifty dropbox route error incorrect offset in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212056#M10719</link>
    <description>&lt;P&gt;Hi - I'm using Swifty Dropbox to upload individual files to another dropbox using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;let dbClient = DropboxClient(accessToken: "xxxxx....."&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;the methods&lt;/P&gt;
&lt;PRE&gt;func doUpload(fileName: String)
func uploadFirstChunk()
func uploadNextChunk()&lt;/PRE&gt;
&lt;P&gt;In this part:&lt;/P&gt;
&lt;PRE&gt;dbClient.files.uploadSessionAppendV2(cursor: Files.UploadSessionCursor(sessionId: self.sessionId, offset: UInt64(offset)), input: data!)
                .response { response, error in
                    if error == nil {
                        self.offset += self.chunkSize
                        self.uploadProgress = Double(self.offset)/Double(self.videoFileSize)
                        self.progressView.progress = Float(self.uploadProgress)
                        self.uploadNextChunk()
                        
                    } else if let callError = error {&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I' ve seen&amp;nbsp;Route Error/IncorrectOffset: {"correct_offset" = 1048576;}.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A beta tester has also reported it. It's not consistent, I only get it occasionally. &lt;BR /&gt;&lt;BR /&gt;What does it&amp;nbsp;mean?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:24:39 GMT</pubDate>
    <dc:creator>mickedg</dc:creator>
    <dc:date>2019-05-29T09:24:39Z</dc:date>
    <item>
      <title>swifty dropbox route error incorrect offset</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212056#M10719</link>
      <description>&lt;P&gt;Hi - I'm using Swifty Dropbox to upload individual files to another dropbox using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;let dbClient = DropboxClient(accessToken: "xxxxx....."&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;the methods&lt;/P&gt;
&lt;PRE&gt;func doUpload(fileName: String)
func uploadFirstChunk()
func uploadNextChunk()&lt;/PRE&gt;
&lt;P&gt;In this part:&lt;/P&gt;
&lt;PRE&gt;dbClient.files.uploadSessionAppendV2(cursor: Files.UploadSessionCursor(sessionId: self.sessionId, offset: UInt64(offset)), input: data!)
                .response { response, error in
                    if error == nil {
                        self.offset += self.chunkSize
                        self.uploadProgress = Double(self.offset)/Double(self.videoFileSize)
                        self.progressView.progress = Float(self.uploadProgress)
                        self.uploadNextChunk()
                        
                    } else if let callError = error {&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I' ve seen&amp;nbsp;Route Error/IncorrectOffset: {"correct_offset" = 1048576;}.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A beta tester has also reported it. It's not consistent, I only get it occasionally. &lt;BR /&gt;&lt;BR /&gt;What does it&amp;nbsp;mean?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212056#M10719</guid>
      <dc:creator>mickedg</dc:creator>
      <dc:date>2019-05-29T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox route error incorrect offset</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212061#M10722</link>
      <description>&lt;P&gt;I found this explanation for the Incorrect Offset error: "&lt;SPAN&gt;The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;Is there anything I can do if this error is very frquent?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 10:34:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212061#M10722</guid>
      <dc:creator>mickedg</dc:creator>
      <dc:date>2017-03-17T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox route error incorrect offset</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212144#M10730</link>
      <description>That's the correct documentation for this error. It generally shouldn't happen often, but if it does, it may indicate an issue with your upload session logic that you should debug.&lt;BR /&gt;&lt;BR /&gt;When you do get it though, you can have your app continue with the upload session, but pick it up from the specified correct offset. For example, in this case the API indicated that it received data up to offset 1048576 so far, so your app should continue the upload session by uploading further portions of data starting at offset 1048576.</description>
      <pubDate>Fri, 17 Mar 2017 17:45:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212144#M10730</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-17T17:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox route error incorrect offset</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212256#M10743</link>
      <description>&lt;P&gt;Thanks Greg! I've lowered the chunk size to 1 MB, could that be the problem? I wanted to do that in order to get a smoother progress view. The files that I'm uploading are typically around 100 - 200 MB. What would be the optimal chunk size from a performance perspective?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 12:58:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212256#M10743</guid>
      <dc:creator>mickedg</dc:creator>
      <dc:date>2017-03-18T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: swifty dropbox route error incorrect offset</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212501#M10762</link>
      <description>You can use whatever chunk size you want, and the chunk size itself shouldn't cause an incorrect offset error.&lt;BR /&gt;&lt;BR /&gt;There isn't an optimal chunk size in general, as there are various different factors, often app-specific, or even user-specific, that will come in to play to affect this. That being the case, you may want to try a few different ones to see what works best for your app. In general though, the larger the chunk size, the better the performance, as there's less overhead associated with making more separate network requests. The bigger the chunk size though, the more likely any particular is to fail.</description>
      <pubDate>Mon, 20 Mar 2017 18:22:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/swifty-dropbox-route-error-incorrect-offset/m-p/212501#M10762</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-20T18:22:10Z</dc:date>
    </item>
  </channel>
</rss>

