Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Clemence D.'s avatar
Clemence D.
New member | Level 1
11 years ago

Enable to get folder access recursively

4 Replies

Replies have been turned off for this discussion
  • Clemence D.'s avatar
    Clemence D.
    New member | Level 1
    11 years ago

    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 !

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

    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.

  • Clemence D.'s avatar
    Clemence D.
    New member | Level 1
    11 years ago

    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 :

    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>

     

    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? :)

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

    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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, Facebook or Instagram.

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!