Learn how to make the most out of the Dropbox Community here 💙.
Forum Discussion
Ashley B.15
6 years agoHelpful | Level 7
Invalid Async Job Id fails if Access Token is Refresshed
I've been doing some work with the batch APIs and came across this error message invalid_async_job_id.
I've only come across this error when I've had to refresh my token. I send my request to crea...
- 6 years ago
Without more information, I can't say exactly why your folders may not have been created. There are a number of ways for a create_folder_batch job to fail, resulting in the folders not being created. Please refer to the error documentation for the /2/files/create_folder_batch and /2/files/create_folder_batch/check endpoints for information on what errors can occur
Please do try starting the job again with a new access token and check the result within the four hours that the access token is valid. (Or, use a long-lived access token instead.) If API isn't behaving as expected, e.g., if the job fails when it appears it shouldn't have, please let us know and share the output so we can check on it.
And yes, right now, the ability to check the status of an async job depends on the validity of the original access token used to start that job. If that access token is no longer valid, you won't be able to check the status of an async job, even with another valid access token for that app/user. You'd need to check the result of the job while the original access token is still valid.
Greg-DB
Dropbox Staff
6 years agoYes, that's correct. (You can also still retrieve them using the public OAuth 2 flow.)
Ashley B.15
6 years agoHelpful | Level 7
Thanks Greg, all set.
- Greg-DB6 years ago
Dropbox Staff
We've fixed this so that you can now check the async job status even if the original access token is revoked or expired, as long as the access token you are using is for the same app/user pair as the original.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,965 PostsLatest Activity: 36 minutes 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!