We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
nzmike
7 years agoExplorer | Level 3
Xamarin.DropBox.APi - HTTP 400 (Bad request) on DownloadAsync
Hi, I have the following code in a static helper class which works perfectly in a Windows UWP app: public static DropboxClient dbxClient { get; private set; } ...... public static async Task<stri...
- 7 years ago
The Dropbox API does require one of a certain set of Content-Type values for download calls like this. The official Dropbox.Api library (i.e., the official Dropbox API v2 .NET SDK) does automatically set a valid Content-Type, so you don't need to do that yourself when using it.
It sounds like when you switch to Xamarin and the Xamarin.Dropbox.Api library, something is overriding it and setting an incorrect Content-Type. I'm afraid we can't offer help with those though, as they're made/maintained by a third party. You may be better served contacting the Xamarin maintainers or asking on a Xamarin forum.
Greg-DB
Dropbox Staff
The Dropbox API does require one of a certain set of Content-Type values for download calls like this. The official Dropbox.Api library (i.e., the official Dropbox API v2 .NET SDK) does automatically set a valid Content-Type, so you don't need to do that yourself when using it.
It sounds like when you switch to Xamarin and the Xamarin.Dropbox.Api library, something is overriding it and setting an incorrect Content-Type. I'm afraid we can't offer help with those though, as they're made/maintained by a third party. You may be better served contacting the Xamarin maintainers or asking on a Xamarin forum.
nzmike
7 years agoExplorer | Level 3
Thanks Greg - I thought the Xamarin DropBox APi was a variant on the official but as it's not I'll ask over on the Xamarin forums.
- luismiguelsi7 years agoNew member | Level 2
Hello,
I have the same problem. did you solve it?.
thanks
- nzmike7 years agoExplorer | Level 3
No, I still have not fixed this but I have not really been looking at it due to other projects. However, I am now back trying to work out why I get his error - but so far no luck.
If I find out i will post here - but if you have solved the problem could you please post your answer here?
- AwesomeHacks5 years agoNew member | Level 2
Hi Guys,
I too was stuck at this problem, as i wanted a free data storage and retreval for my Xamarin.forms App.
Here are some of the points that i understood with this problem:
1. Xamarin is not yet supported by DropBox yet.
2. The above problem is in the autosetting done by xamarin frame work at the backend.
Ans:
Right click on android project of your solution > Select Properties
Goto Android Options> Select Advance Properties
- Select HttpClient implementation as Default ( this would be by default set to Android).
and Select SSL/TLS implementation as Native TLS 1.2+.
Now compile and run your Xamarin.Forms application, it should work like a charm.
Refer this link as to understand why this changes were done Here.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 5 hours agoIf 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 or Facebook.
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!