Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

T. Shogo's avatar
T. Shogo
New member | Level 2
10 years ago

Getting Dropbox.Api.BadInputException on DownloadAsync.

I am developing application to download an image from Dropbox in C#.
I access a folder including Japanese as follows.

-----------------------------------------------------------------

string filePath = ”/漢字.jpg”;
var response = await _DropboxClient.Files.DownloadAsync(filePath);

-----------------------------------------------------------------

 

The following error occurs then.

----------------------------------------------------------------- 

"Error in call to API function \"files/download\": HTTP header \"Dropbox-API-Arg\": could not decode input as JSON"

----------------------------------------------------------------- 

Is there any solution?

 

 

7 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    What version of the SDK are you using? If you're not on the latest version (currently 2.2.3), please update and try again.

  • T. Shogo's avatar
    T. Shogo
    New member | Level 2
    10 years ago

    Hi Gregory,

    Thanks for the quick response!

    I used the latest version (2.2.3).

    Thanks.

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

    No problem. Just to clarify, do you mean you were already using the latest version, or did you just update? I can't reproduce this issue with the latest version, but let us know if you are seeing this error with the latest version.

  • T. Shogo's avatar
    T. Shogo
    New member | Level 2
    10 years ago

    Hi Gregory,

    I got this error in the old version(2.x.x) first.

    I updated it next and got this error in the latest version(2.2.3).

    Thanks.

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

    Ok, this should be fixed version 2.3.0.

  • T. Shogo's avatar
    T. Shogo
    New member | Level 2
    10 years ago

    Great!

    The problem was solved.

    Thank you for your speedy response.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!