We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
thedefaultman
4 months agoNew member | Level 2
large file upload for github actions
Hi all, I'm trying to integrate my software pipeline with dropbox. I've written this bash script that should be able to use the upload session based on the api doc and upload the files but I think I'...
iNeil
Dropbox Engineer
Hi thedefaultman ,
Based on the information you have provided, you are encountering an error message "incorrect_offset" when attempting to upload files using upload sessions. That error can occur regardless of what chunk size you're using, and means:
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.
To handle this, the app should check the "correct_offset" value from the response, which indicates how many bytes the Dropbox API has successfully received for this upload session so far. When an incorrect offset is sent, the Dropbox API is rejecting the call in order to prevent invalid file data from being committed.
I recommend adding more logging to your code, e.g., to log out exactly what parameters you're sending to each API call, to determine where these values may be going wrong, and add some error handling to automatically catch and handle this error when it occurs. The app can resume the upload session from the correct offset.
Здравко
4 months agoLegendary | Level 20
iNeil wrote:..., to determine where these values may be going wrong, and add some error handling to automatically catch and handle this error when it occurs. ...
Hm...🤔 Where may the values be going wrong? Is there something wrong with the values (as expressed) or some error in the API call (as expressed)? 🙂 There is nothing like that!
Instead of catch and handle something meaningless and fix... nothing, it may be better not to enumerate (or rather try for enumeration of) non existing file parts (as result of syntax errors and/or misunderstanding of how shell script works). 😀 Try avoid following the same line iNeil 😉
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!