cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# android http request error

C# android http request error

Ch_p1
Explorer | Level 3
Go to solution

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?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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

 

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

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
Explorer | Level 3
Go to solution

Thanks, I found solution there

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Ch_p1 Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?