We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

nguyenthanhliem's avatar
nguyenthanhliem
New member | Level 2
6 years ago

Error in call to API function "files/download"

I use DropBox API to implement Dropbox in Xamarin.Forms (NET Standard). I upload a file success, but when I download I get this error Dropbox.Api.BadInputException: Error in call to API function "fi...
  • mostafa90's avatar
    mostafa90
    5 years ago

    this answer solved my problem.

    https://github.com/dropbox/dropbox-sdk-dotnet/issues/77#issuecomment-487972169 

     

    Thanks!
    In addition, I think the problem originates from Xamarin using the "AndroidClientHandler" as HttpMessageHandler. So using the current lib version, a workaround would be explicitly setting the (less efficient) HttpClientHandler
    dbx = new DropboxClient(accessToken, new DropboxClientConfig() { HttpClient = new HttpClient(new HttpClientHandler()) });