Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The 3rd revision of a file got 409 error while trying to download. The 2 previous revision was downloaded successfully
------ query for versions -------------------------------
POST https://api.dropboxapi.com/2/files/list_revisions HTTP/1.1
Authorization: Bearer <ACCESS_TOKEN>
User-Agent: OfficialDropboxDotNetSDKv2/4.0.0.0
Content-Type: application/json; charset=utf-8
Host: api.dropboxapi.com
Content-Length: 94
Expect: 100-continue
{"path":"/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf","mode":{".tag":"id"},"limit":100}
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 19 Jun 2018 09:22:52 GMT
Content-Type: application/json
Connection: keep-alive
Vary: Accept-Encoding
Vary: Accept-Encoding
Cache-Control: no-cache
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Dropbox-Request-Id: 5bac1abe8b59cea5f86318e9c6a230ef
X-Frame-Options: SAMEORIGIN
X-Server-Response-Time: 228
Content-Length: 1577
{
"is_deleted": false,
"entries": [{
"name": "DIAZDE1.pdf",
"path_lower": "/htk scanning project/a berne/attached/diazde1.pdf",
"path_display": "/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf",
"parent_shared_folder_id": "1460560396",
"id": "id:iLoTmHG3HyAAAAAAAAAFzQ",
"client_modified": "2017-04-05T19:46:32Z",
"server_modified": "2017-05-02T23:03:04Z",
"rev": "81a570e620c",
"size": 3161153,
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "1460560396",
"modified_by": "dbid:AAC2lY_1pMs_g1IvZRXeXljwOyXccyktbrA"
},
"content_hash": "b6995ed1695420965f262d0cd73a8147b9101d9305e7d93ba56ace0b876ff68b"
},
{
"name": "DIAZDE1.pdf",
"path_lower": "/htk scanning project/a berne/diazde1.pdf",
"path_display": "/HTK Scanning Project/a berne/DIAZDE1.pdf",
"parent_shared_folder_id": "1460560396",
"id": "id:iLoTmHG3HyAAAAAAAAAFzQ",
"client_modified": "2017-04-05T19:46:32Z",
"server_modified": "2017-04-26T19:25:12Z",
"rev": "262570e620c",
"size": 3161153,
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "1460560396",
"modified_by": "dbid:AAC2lY_1pMs_g1IvZRXeXljwOyXccyktbrA"
},
"content_hash": "b6995ed1695420965f262d0cd73a8147b9101d9305e7d93ba56ace0b876ff68b"
},
{
"name": "DIAZDE1.pdf",
"path_lower": "/htk scanning project/a berne/diazde1.pdf",
"path_display": "/htk scanning project/a berne/DIAZDE1.pdf",
"id": "id:iLoTmHG3HyAAAAAAAAAFzQ",
"client_modified": "2017-04-05T19:46:32Z",
"server_modified": "2017-04-17T13:33:54Z",
"rev": "92f4133c6d4",
"size": 3161153,
"content_hash": "b6995ed1695420965f262d0cd73a8147b9101d9305e7d93ba56ace0b876ff68b"
}]
}
---- download version 1 OK ---------------------------------
POST https://content.dropboxapi.com/2/files/download HTTP/1.1
Authorization: Bearer <ACCESS_TOKEN>
User-Agent: OfficialDropboxDotNetSDKv2/4.0.0.0
Dropbox-API-Arg: {"path":"/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf","rev":"81a570e620c"}
Host: content.dropboxapi.com
Content-Length: 0
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 19 Jun 2018 09:24:39 GMT
Content-Type: application/octet-stream
Content-Length: 3161153
Connection: keep-alive
accept-ranges: bytes
etag: W/"81a570e620c"
pragma: no-cache
cache-control: no-cache
original-content-length: 3161153
dropbox-api-result: {"name": "DIAZDE1.pdf", "path_lower": "/htk scanning project/a berne/attached/diazde1.pdf", "path_display": "/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf", "parent_shared_folder_id": "1460560396", "id": "id:iLoTmHG3HyAAAAAAAAAFzQ", "client_modified": "2017-04-05T19:46:32Z", "server_modified": "2017-05-02T23:03:04Z", "rev": "81a570e620c", "size": 3161153, "sharing_info": {"read_only": false, "parent_shared_folder_id": "1460560396", "modified_by": "dbid:AAC2lY_1pMs_g1IvZRXeXljwOyXccyktbrA"}, "content_hash": "b6995ed1695420965f262d0cd73a8147b9101d9305e7d93ba56ace0b876ff68b"}
X-Server-Response-Time: 698
X-Dropbox-Request-Id: 637e033cd8ede6b46d3286de470753b4
X-Robots-Tag: noindex, nofollow, noimageindex
%PDF-1.4
%�����
1 0 obj
<< /Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<< /Type /Pages
/Kids [4 0 R 9 0 R 13 0 R 17 0 R 21 0 R 25 0 R 29 0 R 33 0 R 37 0 R 41 0 R 45 0 R 50 0 R 54 0 R 58 0 R 62 0 R 66 0 R 70 0 R 74 0 R 78 0 R 82 0 R 86 0 R 91 0 R 95 0 R 99 0 R 103 0 R 107 0 R 111 0 R 115 0 R 119 0 R 123 0 R 127 0 R 132 0 R 136 0 R 140 0 R 144 0 R 148 0 R 152 0 R 156 0 R 160 0 R 164 0 R 168 0 R 173 0 R 177 0 R 181 0 R 185 0 R]
/Count 45
>>
endobj
3 0 obj
<< /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/XObject << /XIPLAYER0 6 0 R
>>
>>
endobj
4 0 obj
<< /Type /Page
/Parent 2 0 R
/Resources 3 0 R
/MediaBox [0 0 596 842]
/Contents 5 0 R
>>
endobj
5 0 obj
<< /Length 72
/Filter /FlateDecode
>>
stream
x�SPPP(�R
---- download version 2 OK ------------------------------------------
POST https://content.dropboxapi.com/2/files/download HTTP/1.1
Authorization: Bearer <ACCESS_TOKEN>
User-Agent: OfficialDropboxDotNetSDKv2/4.0.0.0
Dropbox-API-Arg: {"path":"/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf","rev":"262570e620c"}
Host: content.dropboxapi.com
Content-Length: 0
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 19 Jun 2018 09:24:44 GMT
Content-Type: application/octet-stream
Content-Length: 3161153
Connection: keep-alive
accept-ranges: bytes
etag: W/"262570e620c"
pragma: no-cache
cache-control: no-cache
original-content-length: 3161153
dropbox-api-result: {"name": "DIAZDE1.pdf", "path_lower": "/htk scanning project/a berne/diazde1.pdf", "path_display": "/HTK Scanning Project/a berne/DIAZDE1.pdf", "parent_shared_folder_id": "1460560396", "id": "id:iLoTmHG3HyAAAAAAAAAFzQ", "client_modified": "2017-04-05T19:46:32Z", "server_modified": "2017-04-26T19:25:12Z", "rev": "262570e620c", "size": 3161153, "sharing_info": {"read_only": false, "parent_shared_folder_id": "1460560396", "modified_by": "dbid:AAC2lY_1pMs_g1IvZRXeXljwOyXccyktbrA"}, "content_hash": "b6995ed1695420965f262d0cd73a8147b9101d9305e7d93ba56ace0b876ff68b"}
X-Server-Response-Time: 495
X-Dropbox-Request-Id: 4aac4e3cecf3f2eaeb91a7cf92f35d0b
X-Robots-Tag: noindex, nofollow, noimageindex
%PDF-1.4
%�����
1 0 obj
<< /Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<< /Type /Pages
/Kids [4 0 R 9 0 R 13 0 R 17 0 R 21 0 R 25 0 R 29 0 R 33 0 R 37 0 R 41 0 R 45 0 R 50 0 R 54 0 R 58 0 R 62 0 R 66 0 R 70 0 R 74 0 R 78 0 R 82 0 R 86 0 R 91 0 R 95 0 R 99 0 R 103 0 R 107 0 R 111 0 R 115 0 R 119 0 R 123 0 R 127 0 R 132 0 R 136 0 R 140 0 R 144 0 R 148 0 R 152 0 R 156 0 R 160 0 R 164 0 R 168 0 R 173 0 R 177 0 R 181 0 R 185 0 R]
/Count 45
>>
endobj
3 0 obj
<< /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/XObject << /XIPLAYER0 6 0 R
>>
>>
endobj
4 0 obj
<< /Type /Page
/Parent 2 0 R
/Resources 3 0 R
/MediaBox [0 0 596 842]
/Contents 5 0 R
>>
endobj
5 0 obj
<< /Length 72
/Filter /FlateDecode
>>
stream
x�SPPP(�R
--------- download version 3 409 fail -------------------------------------------
POST https://content.dropboxapi.com/2/files/download HTTP/1.1
Authorization: Bearer <ACCESS_TOKEN>
User-Agent: OfficialDropboxDotNetSDKv2/4.0.0.0
Dropbox-API-Arg: {"path":"/HTK Scanning Project/a berne/Attached/DIAZDE1.pdf","rev":"92f4133c6d4"}
Host: content.dropboxapi.com
Content-Length: 0
HTTP/1.1 409 path/not_found/...
Server: nginx
Date: Tue, 19 Jun 2018 09:24:48 GMT
Content-Type: application/json
Connection: keep-alive
Content-Security-Policy: sandbox allow-forms allow-scripts
X-Dropbox-Request-Id: ba21b5b63c20fb5d349f27bcef6321b7
X-Robots-Tag: noindex, nofollow, noimageindex
Content-Length: 97
{"error_summary": "path/not_found/...", "error": {".tag": "path", "path": {".tag": "not_found"}}}
The version of the file you're trying to download is from 2017-04-17. Note that Dropbox only retains old versions of files for a limited amount of time, depending on the account type. This error is indicating that this version is no longer available.
By the way, I removed it from your post, but for the sake of security, you should disable that access token, since you posted it publicly. You can do so by revoking access to the app entirely, if the access token is for your account, here:
https://www.dropbox.com/account/connected_apps
Or, you can disable just this access token using the API:
https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
Hi there!
If you need more help you can view your support options (expected response time for a 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!