I'm using Talend to connect, list & get my Dropbox files.
I can connect & list one range of folders but as soon as I try to do it by checking 'including subdirectories', I've got this message :
Exception in component tDropboxList_1
com.dropbox.core.DbxException$BadRequest: <html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
I reckon it's a talend problem but if anyone has an idea, I take it
Thanks !
We can't offer support for Talend itself of course, but we'll be happy to help with the Dropbox API side of things.
Is there any other information you can post though? E.g., code, stack trace, a sample request/response? What you've posted so far indicates that the Dropbox servers didn't recognize the request as a properly formatted API request, but it's hard to say why off hand without more information.
Thanks for your answer Yeah I understand you can't help me with the Talend things but at first sight the community isn't as quick as dropbox one !
The error occurs here calling the getMetadataWithChildren method -->
if (!tDropboxList_1_child.isFile()) {
com.dropbox.core.DbxEntry.WithChildren tmp = tDropboxList_1_client
.getMetadataWithChildren(tDropboxList_1_child.path);
if (tmp != null && tmp.children != null) {
tDropboxList_1_files.addAll(tmp.children);
}
End the full error stack is :
at com.dropbox.core.DbxRequestUtil.unexpectedStatus(DbxRequestUtil.java:202)
at com.dropbox.core.DbxClient$2.handle(DbxClient.java:181)
at com.dropbox.core.DbxRequestUtil.doGet(DbxRequestUtil.java:265)
at com.dropbox.core.DbxClient.doGet(DbxClient.java:1838)
at com.dropbox.core.DbxClient.getMetadataWithChildrenBase(DbxClient.java:176)
at com.dropbox.core.DbxClient.getMetadataWithChildren(DbxClient.java:143)
at dropbox_to_mysql.test2_0_1.test2.tDropboxList_1Process(test2.java:475)
at dropbox_to_mysql.test2_0_1.test2.tDropboxConnection_1Process(test2.java:379)
at dropbox_to_mysql.test2_0_1.test2.tMysqlRow_1Process(test2.java:697)
at dropbox_to_mysql.test2_0_1.test2.runJobInTOS(test2.java:923)
at dropbox_to_mysql.test2_0_1.test2.main(test2.java:780)
What really is weird is that it's working perfectly with a simple directory listing.
I guess you won't be able to help me as it's wrapped into talend but who knows?
What's the value of tDropboxList_1_child.path? Also, can you check DbxSdkVersion?
In addition, since this is using the official Dropbox Core Java SDK, in order to rule out (or not) Talend's impact on this, can you try it just using the SDK? The included web-file-browser example uses getMetadataWithChildren, so you can probably just run that with the same tDropboxList_1_child.path parameter.