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

Forum Discussion

Ch_p1's avatar
Ch_p1
Explorer | Level 3
7 years ago
Solved

C# android http request error

Hey folks!
I use official dropbox package via C#

data = await fileMetadata.GetContentAsStringAsync();

It perfectly works on windows but recently on android it started throw following error:

Dropbox.Api.BadInputException: Error in call to API function "files/download": Bad HTTP "Content-Type" header: "application/x-www-form-urlencoded". Expecting one of "text/plain", "text/plain; charset=utf-8", "application/octet-stream", "application/octet-stream; charset=utf-8"
at Dropbox.Api.DropboxRequestHandler+<RequestJsonString>d__17.MoveNext ().

 



Could you please suggest what to do?

  • Based on your mention of using this on Android, I take it you're running this with Xamarin. Is that correct?

    The .NET SDK isn't officially supported for Xamarin, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    There is a thread with some information on this issue that may be helpful here though: https://github.com/dropbox/dropbox-sdk-dotnet/issues/77

     

2 Replies

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

    Based on your mention of using this on Android, I take it you're running this with Xamarin. Is that correct?

    The .NET SDK isn't officially supported for Xamarin, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    There is a thread with some information on this issue that may be helpful here though: https://github.com/dropbox/dropbox-sdk-dotnet/issues/77

     

  • Ch_p1's avatar
    Ch_p1
    Explorer | Level 3
    7 years ago

    Thanks, I found solution there

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!