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
nickbrit
7 years agoNew member | Level 2
The check API always returns Internal_error
https://api.dropboxapi.com/2/files/copy_batch/check always returns `Internal_error` for me. The documentation says `This should happen very rarely`. Is it something on my end?
- 7 years agoThanks! I see you're running a filesUploadSessionFinishBatch job, but are trying to check it using filesCopyBatchCheck. For filesUploadSessionFinishBatch jobs, you should use filesUploadSessionFinishBatchCheck to check it:
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionFinishBatchCheck__anchor
nickbrit
New member | Level 2
I'm using Javascript SDK.
dbx.filesUploadSessionStart({ close: close, contents: toUpload }).then((response) => { this.entries.push({ cursor: { session_id: response.session_id, offset: 0 }, "commit": { 'path': this.path + '/' + toUpload.name, 'mode': 'add', 'mute': false } }) resolve(response); });
I run it twice, for exmple. First time close is `false`, the second one is `true`.
And I call `/upload_session/finish_batch`:
dbx.filesUploadSessionFinishBatch({ 'entries': this.entries}).then((response) => { ... });
And I call `check` with `async_job_id`:
dbx.filesCopyBatchCheck({ 'async_job_id': async_job_id })
Frist time it returns `in progress`, second time it returns `Internal_error`
Greg-DB
7 years agoDropbox Staff
Thanks! I see you're running a filesUploadSessionFinishBatch job, but are trying to check it using filesCopyBatchCheck. For filesUploadSessionFinishBatch jobs, you should use filesUploadSessionFinishBatchCheck to check it:
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionFinishBatchCheck__anchor
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionFinishBatchCheck__anchor
- nickbrit7 years agoNew member | Level 2
Yes, sorry. Just realized it.
Thank you
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!