Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

nickbrit's avatar
nickbrit
New member | Level 2
8 years ago
Solved

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? 

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    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.
  • nickbrit's avatar
    nickbrit
    New member | Level 2
    8 years ago

    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`

  • nickbrit's avatar
    nickbrit
    New member | Level 2
    8 years ago

    Yes, sorry. Just realized it. 

     

    Thank you

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!