<?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: 504 when reading data in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467532#M23847</link>
    <description>&lt;P&gt;Thank you for the very quick response! Unfortunately, if I add a param to the request I get a 400 error:&lt;BR /&gt;&lt;BR /&gt;`GET &lt;A href="https://content.dropboxapi.com/2/files/download?ngsw-bypass=true" target="_blank"&gt;https://content.dropboxapi.com/2/files/download?ngsw-bypass=true&lt;/A&gt; 400 (Bad Request)`&lt;BR /&gt;And the body says:&lt;BR /&gt;Error in call to API function "files/download": Unexpected URL params: "ngsw-bypass"&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 22:20:25 GMT</pubDate>
    <dc:creator>johannesjo</dc:creator>
    <dc:date>2020-11-05T22:20:25Z</dc:date>
    <item>
      <title>504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467507#M23844</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Operating System and version: iOS 14.1&lt;/LI&gt;
&lt;LI&gt;Browser Name and version: Safari 14.1&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;One of my users encountered a problem when using dropbox from my app from an iPhone:&lt;BR /&gt;&lt;A href="https://github.com/johannesjo/super-productivity/issues/645" target="_blank" rel="noopener"&gt;https://github.com/johannesjo/super-productivity/issues/645&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is most likely the response to a request to:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;https://content.dropboxapi.com/2/files/download&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:13:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467507#M23844</guid>
      <dc:creator>johannesjo</dc:creator>
      <dc:date>2020-11-06T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467522#M23845</link>
      <description>&lt;P&gt;Would it be possible to get some sample requests/responses showing the issue so we can try to track this down and investigate on our side? Be sure to redact the access token though of course.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 21:17:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467522#M23845</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-05T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467528#M23846</link>
      <description>&lt;P&gt;Actually, I think this may be this issue:&amp;nbsp;&lt;A href="https://github.com/angular/angular/issues/37133" target="_blank"&gt;https://github.com/angular/angular/issues/37133&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a solution posted there. Can you try that out?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 21:35:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467528#M23846</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-05T21:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467532#M23847</link>
      <description>&lt;P&gt;Thank you for the very quick response! Unfortunately, if I add a param to the request I get a 400 error:&lt;BR /&gt;&lt;BR /&gt;`GET &lt;A href="https://content.dropboxapi.com/2/files/download?ngsw-bypass=true" target="_blank"&gt;https://content.dropboxapi.com/2/files/download?ngsw-bypass=true&lt;/A&gt; 400 (Bad Request)`&lt;BR /&gt;And the body says:&lt;BR /&gt;Error in call to API function "files/download": Unexpected URL params: "ngsw-bypass"&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:20:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467532#M23847</guid>
      <dc:creator>johannesjo</dc:creator>
      <dc:date>2020-11-05T22:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467535#M23848</link>
      <description>&lt;P&gt;Nevermind. I just figured that this is supposed to work as a header field as well. I get back to you once I've tested this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:31:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467535#M23848</guid>
      <dc:creator>johannesjo</dc:creator>
      <dc:date>2020-11-05T22:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467540#M23849</link>
      <description>&lt;P&gt;Setting&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'ngsw-bypass': true&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;as header won't also work unfortunately as I get a Cross-origin error then... Any ideas?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 23:09:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467540#M23849</guid>
      <dc:creator>johannesjo</dc:creator>
      <dc:date>2020-11-05T23:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467716#M23851</link>
      <description>&lt;P&gt;I see, thanks. I'm not too familiar with the underlying issue here with regards to why Safari is rejecting or corrupting these requests, but looking at the proposed solution, the&amp;nbsp;Dropbox API certainly doesn't expect any extra parameters or headers. (I'm not sure why this is necessary anyway since this seems like a client issue, not a server-side issue; it doesn't happen in other browsers, for instance.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, I don't know which specific CORS error you're getting, but the&amp;nbsp;Dropbox API does offer a few other options for formatting requests that may help workaround this. You can find information on those options &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_blank"&gt;under "Request and response formats" in the documentation&lt;/A&gt;, in particular in the "Content-download endpoints" and "Browser-based JavaScript and CORS pre-flight requests" sections.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:38:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467716#M23851</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-06T15:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467719#M23853</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;(I'm not sure why this is necessary anyway since this seems like a client issue, not a server-side issue; it doesn't happen in other browsers, for instance.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is only necessary due to a long-existing bug with the angular service worker. It's a workaround to exclude requests from being cached by it. I don't see them fixing it anytime soon, that's why I am working with it in the first place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, maybe it's time to look for an alternative solution anyway. Thank you very much for your quick and competent help! Much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:47:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467719#M23853</guid>
      <dc:creator>johannesjo</dc:creator>
      <dc:date>2020-11-06T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: 504 when reading data</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467720#M23854</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1370698"&gt;@johannesjo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;`&lt;U&gt;&lt;STRONG&gt;GET&lt;/STRONG&gt;&lt;/U&gt; &lt;A href="https://content.dropboxapi.com/2/files/download?ngsw-bypass=true" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/download?ngsw-bypass=true&lt;/A&gt; 400 (Bad Request)`&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1370698"&gt;@johannesjo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Take a look on the &lt;A title="/2/files/download" href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; more carefully. The query must be POST, not GET!&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:54:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-when-reading-data/m-p/467720#M23854</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-11-06T15:54:43Z</dc:date>
    </item>
  </channel>
</rss>

