I am trying to copy some files from my `Camera Uploads` folder to another folder `Videos`
first I do
const { async_job_id } = await dropbox.filesCopyBatchV2({
entries,
autorename: false,
});
This seems to work because I get back a long string for async_job_id
Then I do the following:
while (true) {
try {
let response = await dropbox.filesCopyBatchCheckV2({ async_job_id });
if (response['.tag'] != 'in_progress') {
break;
}
await sleep(5000);
} catch (error) {
break;
}
What happens is that I hit filesCopyBatchCheckV2 endpoint 5 or 6 times; I get back a response of in_progress each time; then I get a response with a status of 409, statusText of "Conflict" and an error_summary of internal_error.
No files get transferred.
Please help!