I am having an intermittent issue with checking the status of async share jobs. Below is the flow I'm building and below that an real error being returned by the API. This is for an internal Dropbox app that we are building and is not yet in "production" mode.
The Flow:
1) Create new folder inside the team space/folder
2) Create 13 subfolders inside that folder
3) Check the status of sharing each subfolder, polling every 5 seconds until it is "complete"
4) Finally, we add one of our groups to that folder via the "add_folder_member" endpoint.
We ALWAYS create the parent folder successfully. Typically the error occurs around the 3rd or 4th subfolder.
This is currently blocking our integration so any feedback or help would be deeply appreciated.
POST https://api.dropboxapi.com/2/sharing/check_share_job_status
Dropbox-API-Select-Admin: "XX"
Dropbox-API-Path-Root: "{\".tag\":\"namespace_id\",\"namespace_id\":\"6925873200\"}"
Authorization: "Bearer XXX"
User-Agent: "Faraday v1.0.0"
content-type: "application/json"
{"async_job_id":"dbjid:AAAk3C8gUV9HTzIJurjlHh32N2KlIfZ3pgHAgOVrN88ewvaV-fKy-HdKvNPhc7w4JCDB3jxHEsPMJnaOfrVwXhq5"}
Status 409
server: "nginx"
date: "Fri, 17 Jan 2020 22:06:28 GMT"
content-type: "application/json"
transfer-encoding: "chunked"
connection: "close"
content-security-policy: "sandbox; frame-ancestors 'none'"
x-dropbox-request-id: "21f7ab0bb9e6390b090c5c60050ed683"
x-frame-options: "DENY"
x-content-type-options: "nosniff"
content-disposition: "attachment; filename='error'"
{"error_summary": "internal_error/.", "error": {".tag": "internal_error"}}