You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
ncw
4 years agoCollaborator | Level 8
How long should I wait for /upload_session/finish_batch/check to complete?
In order to complete a batch it is necessary to call upload_session/finish_batch/check . The docs for this don't give any guidance on
How long to try calling this API for
How often to call...
Greg-DB
Dropbox Staff
There isn't a guaranteed maximum time that one of these batch jobs may take. The processing time will depend on a few factors, such as how many files there are, etc., so it can vary.
Likewise, there isn't a best frequency for how often to poll these jobs. Once a second is fine. For larger batches, which may take longer given the larger amount of work to do, you could increase that a bit if you wish.
The 500 Internal Server Error indicates an issue on the Dropbox servers, so we'll have to look into that. For reference though, can you let me know if that's transient or if you can reliably reproduce that error, e.g., if you try again now? Thanks in advance!
ncw
4 years agoCollaborator | Level 8
> There isn't a guaranteed maximum time that one of these batch jobs may take. The processing time will depend on a few factors, such as how many files there are, etc., so it can vary.
There was only one file in the batch above so for it to take 2 minutes seems a long time. But then I have no idea what is going on behind the scenes!
> Likewise, there isn't a best frequency for how often to poll these jobs. Once a second is fine. For larger batches, which may take longer given the larger amount of work to do, you could increase that a bit if you wish.
OK.
> The 500 Internal Server Error indicates an issue on the Dropbox servers, so we'll have to look into that. For reference though, can you let me know if that's transient or if you can reliably reproduce that error, e.g., if you try again now?
I got that trace second hand from an rclone tester, but I believe it only happens quite rarely when doing a lot of transfers over a long time.
Thanks
- Greg-DB4 years agoDropbox Staff
ncw wrote:
I got that trace second hand from an rclone tester, but I believe it only happens quite rarely when doing a lot of transfers over a long time.
ncw Thanks! That seems to match what I can see on our side. It appears this was a transient availability issue.
ncw wrote:
Rclone retries this 10 times then gives up.
How quickly does Rclone perform these retries on a 500 like this? If it's in relatively quick succession, you may want to implement an exponential backoff to give the service more time to recover when this does occur.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 2 hours ago
If 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!