cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

The check API always returns Internal_error

New member | Level 2
New member | Level 2

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? 

1 Accepted Solution

Accepted Solutions
Highlighted

Re: The check API always returns Internal_error

Dropboxer
Dropboxer
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

View solution in original post

4 Replies 4
Highlighted

Re: The check API always returns Internal_error

Dropboxer
Dropboxer
To clarify, are you seeing this consistently for a particular job ID, or for multiple different job IDs?

Once you get `internal_error` for a particular job ID, you should stop checking the job status, as it won't change for that job ID. The `internal_error` failure should be considered permanent, so you need to try to re-run the copy_batch operation itself.

If you're getting this consistently across multiple jobs, please share the code you're using, as well as a few sample job IDs, so we can look into it for you.
Highlighted

Re: The check API always returns Internal_error

New member | Level 2
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`

Highlighted

Re: The check API always returns Internal_error

Dropboxer
Dropboxer
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

View solution in original post

Highlighted

Re: The check API always returns Internal_error

New member | Level 2
New member | Level 2

Yes, sorry. Just realized it. 

 

Thank you

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?