<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error in call to API function &amp;quot;files/download&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323060#M18984</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/928357"&gt;@DiwakarK&lt;/a&gt;&amp;nbsp;It sounds like you're experiencing a different issue than the one reported in this thread. Please open a new thread with the details of the issue, such as the code to reproduce it and the full error/output, so we can look into it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_blank"&gt;https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 17:08:37 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-01-15T17:08:37Z</dc:date>
    <item>
      <title>Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/322843#M18975</link>
      <description>&lt;P&gt;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&lt;/P&gt;&lt;P&gt;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".&lt;/P&gt;&lt;P&gt;using (var client = new DropboxClient(this.AccessToken)) { using (var response = await client.Files.DownloadAsync(file.FilePath + "/" + file)) { var pickedFile = await response.GetContentAsByteArrayAsync(); //FileImagePreview.Source = ImageSource.FromStream(() =&amp;gt; pickedFile); } }&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/322843#M18975</guid>
      <dc:creator>nguyenthanhliem</dc:creator>
      <dc:date>2019-05-29T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/322930#M18977</link>
      <description>&lt;P&gt;I am facing error when downloading shared file using DropBox API. getting 503.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 05:47:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/322930#M18977</guid>
      <dc:creator>DiwakarK</dc:creator>
      <dc:date>2019-01-14T05:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323058#M18983</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/927126"&gt;@nguyenthanhliem&lt;/a&gt;&amp;nbsp;The Dropbox .NET SDK isn't officially supported on Xamarin, but there was another thread where a developer ran into this issue and was reportedly able to resolve it here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Content-Type-setting-for-downloading-using-dropbox-api-v2/m-p/310212" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/Content-Type-setting-for-downloading-using-dropbox-api-v2/m-p/310212&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:10:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323058#M18983</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-15T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323060#M18984</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/928357"&gt;@DiwakarK&lt;/a&gt;&amp;nbsp;It sounds like you're experiencing a different issue than the one reported in this thread. Please open a new thread with the details of the issue, such as the code to reproduce it and the full error/output, so we can look into it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_blank"&gt;https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:08:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323060#M18984</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-15T17:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323181#M18992</link>
      <description>&lt;P&gt;I have look in your link and I think they still not found solution for this!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 03:29:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323181#M18992</guid>
      <dc:creator>nguyenthanhliem</dc:creator>
      <dc:date>2019-01-15T03:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323320#M18999</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/927126"&gt;@nguyenthanhliem&lt;/a&gt;&amp;nbsp;I was referring to &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Content-Type-setting-for-downloading-using-dropbox-api-v2/m-p/311852/highlight/true#M18551" target="_blank"&gt;this comment in particular&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/805492"&gt;@Anoop_Brijmohun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Found the solution here&lt;/P&gt;
&lt;P&gt;&lt;A title="Bad HTTP Request - Xamarin Dropbox API" href="https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/http-stack?tabs=windows" target="_blank"&gt;https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/http-stack?tabs=windows&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;I'm afraid I can't offer more information though, as the Dropbox .NET SDK isn't officially supported on Xamarin. Apologies I can't be of more help in that regard!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:10:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/323320#M18999</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-15T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "files/download"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/406321#M22098</link>
      <description>&lt;P&gt;this answer solved my problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/issues/77#issuecomment-487972169" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/issues/77#issuecomment-487972169&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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 (&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/http-stack" target="_blank" rel="nofollow noopener"&gt;less efficient&lt;/A&gt;&lt;SPAN&gt;) HttpClientHandler&lt;/SPAN&gt;&lt;BR /&gt;dbx = new DropboxClient(accessToken, new DropboxClientConfig() { HttpClient = new HttpClient(new HttpClientHandler()) });&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 18:23:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-files-download-quot/m-p/406321#M22098</guid>
      <dc:creator>mostafa90</dc:creator>
      <dc:date>2020-04-02T18:23:02Z</dc:date>
    </item>
  </channel>
</rss>

