We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Ridvan_'s avatar
Ridvan_
Helpful | Level 6
4 years ago

filesListRevisions on version 10.23.0 Javascript SDK throws 409 code error

I'm trying to get modified_by info for deleted file via filesListRevisions, after I get changes with filesListFolderContinue or filesListFolderGetLatestCursor. I sometimes get 409 code error. How can I figure this out? Or is there any alternative way to get modified_by info for deleted file. Thanks.


Javascript SDK Version = 10.23.0;


Error Log:

 

2022-03-01T03:20:17.093Z 043e3070-2904-48f4-a9ae-bab309fdb1d5 ERROR DropboxResponseError: Response failed with a 409 code
 {
status: 409,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
'cache-control': [Array],
'content-security-policy': [Array],
'x-content-type-options': [Array],
'content-type': [Array],
'accept-encoding': [Array],
date: [Array],
server: [Array],
'content-length': [Array],
'x-dropbox-response-origin': [Array],
'x-dropbox-request-id': [Array],
connection: [Array]
}
},
error: {
error_summary: 'path/not_file/..',
error: { '.tag': 'path', path: [Object] }
}
}

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    I see you're getting a 'path/not_file' error, which indicates that the path you're supplying to filesListRevisions is not for a file. The filesListRevisions functionality only supports files, not folders. Make sure you're only passing in file paths when calling filesListRevisions. (The filesListFolder* methods will list both files and folders.)

  • Ridvan_'s avatar
    Ridvan_
    Helpful | Level 6
    4 years ago

    I got it. Actually, I want to get latest changes and if there is a deleted file (not folder), I need to learn who did it. I'm getting latest changes with filesListFolderContinue. After that, I'm trying to get modefied_by info with filesListRevisions because filesListFolderContinue doesn't return sharing_info and type (folder or file) for deleted . And also, I have noticed that filesListRevisions returns modified_by of deleted for lastest uploader/changer, not for deleter. How can I figure my case out? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Unfortunately the Dropbox API doesn't offer a way to look up which account deleted a file like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 13 hours ago
276 Following

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 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!