tus / tus-android-client

The tus client for Android.
https://tus.io/
161 stars 46 forks source link

Getting "response contains different Upload-Offset value" in example application #9

Closed elliottdehn closed 8 years ago

elliottdehn commented 8 years ago

Hi, I'm currently trying to pin down a bug I'm getting using the example application. When I select a picture, and it gets to the end of the upload, the following error gets thrown: D/Loop: Error occurred: response contains different Upload-Offset value (1386863) than expected (1391815) Error class: class io.tus.java.client.ProtocolException

So it seems like it is undershooting the number of bytes it needs to upload? This seems strange, and I haven't touched the code from the example application, so I don't know what's wrong. I should say that it did successfully upload on a few occasions, but this error happens 95% of the time!

PS I will be hunting this down as I can, I just felt like posting this to see if anyone had any ideas.

Edit: after some logging, I found it might be mixing up numbers? D/Loop: Looped! 1391815/1386863 (uploaded/total) D/Loop: Error occurred: response contains different Upload-Offset value (1386863) than expected (1391815) Error clasS: class io.tus.java.client.ProtocolException

Acconut commented 8 years ago

Closing in favor of tus/tus-java-client#8.