<?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 Gateway Timeout listing files in 2 accounts with code that had been working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/569090#M26637</link>
    <description>&lt;P&gt;Turns out a subtle but reasonable change to Dropbox upload responses uncovered a bug in our prototype devices. That caused the lack of listed files and also caused a lot of retries, which probably triggered the 504s when I dumped the cursors and restarted the listing. I resurrected the cursors and listings work now. Thanks for investigating.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jan 2022 00:14:56 GMT</pubDate>
    <dc:creator>mepard</dc:creator>
    <dc:date>2022-01-08T00:14:56Z</dc:date>
    <item>
      <title>504 Gateway Timeout listing files in 2 accounts with code that had been working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568971#M26634</link>
      <description>&lt;P&gt;On 5-Jan-2022 just after 3:00 CST, notify.dropboxapi.com/2/files/list_folder/longpoll quit returning any changes or api.dropboxapi.com/2/files/list_folder/continue quit returning any files (could be either).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I restarted the process, but it didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thinking it might be a cursor problem, I started over with api.dropboxapi.com/2/files/list_folder to generate a new cursor.&lt;BR /&gt;At that point it started getting HTTP/1.1 504 Gateway Timeout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the advice at &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-continue-gt-504-errors/td-p/299023" target="_blank"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-continue-gt-504-errors/td-p/299023&lt;/A&gt;, I kept reducing the limit value and am down to 25 and still getting 504s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens on two different Dropbox app tokens with differing numbers of files. The code has been working well on the same accounts for over a year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are two examples:&lt;/P&gt;&lt;P&gt;Request: POST /2/files/list_folder HTTP/1.1&lt;BR /&gt;Host: api.dropboxapi.com&lt;BR /&gt;Authorization: Bearer &amp;lt;app token 1&amp;gt;&lt;BR /&gt;User-Agent: MATLAB/9.11.0.1809720 (R2021b) Update 1&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Date: Fri, 07 Jan 2022 14:51:02 GMT&lt;BR /&gt;Content-Length: 188&lt;BR /&gt;Accept-Encoding: gzip&lt;BR /&gt;Accept: application/json&lt;BR /&gt;CharacterEncoding: ISO-8859-1&lt;BR /&gt;Expect: 100-continue&lt;BR /&gt;&amp;lt;&amp;lt; 188 bytes of application/json data &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Response: HTTP/1.1 504 Gateway Timeout&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;Date: Fri, 07 Jan 2022 14:52:32 GMT&lt;BR /&gt;Server: envoy&lt;BR /&gt;Content-Encoding: gzip&lt;BR /&gt;Vary: Accept-Encoding&lt;BR /&gt;X-Dropbox-Response-Origin: far_remote&lt;BR /&gt;X-Dropbox-Request-Id: 50395fe1c7384de8accf3ddb584afb7b&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;[Content elided]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Request: POST /2/files/list_folder/continue HTTP/1.1&lt;BR /&gt;Host: api.dropboxapi.com&lt;BR /&gt;Authorization: Bearer &amp;lt;app token 2&amp;gt;&lt;BR /&gt;User-Agent: MATLAB/9.11.0.1809720 (R2021b) Update 1&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Date: Fri, 07 Jan 2022 12:47:36 GMT&lt;BR /&gt;Content-Length: 251&lt;BR /&gt;Accept-Encoding: gzip&lt;BR /&gt;Accept: application/json&lt;BR /&gt;CharacterEncoding: ISO-8859-1&lt;BR /&gt;Expect: 100-continue&lt;BR /&gt;{"cursor":"AAHgy8cta3wWMzglPU33cOUTBH6QUWanBmHxSJHaye0aQk3AtR-NO5lQ7SKlJ_CPXJ3-mboxosbq_azt_pjIXarl8n2T8GgPW1dg0uGoX2tkTK6lYklmcj19b1B8DFSE2YidTSD2LZtm2z3wiRKPIR61EnVbSsogWpzCkMtX0JRR34lF3EJD-BDZiv5_1jX-sKK5JE4vL4ZwBXS6LLNzH8CEFnHE-8r6V_eSxztenMoBNw"}&lt;/P&gt;&lt;P&gt;Response: HTTP/1.1 504 Gateway Timeout&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;Date: Fri, 07 Jan 2022 12:49:07 GMT&lt;BR /&gt;Server: envoy&lt;BR /&gt;Content-Encoding: gzip&lt;BR /&gt;Vary: Accept-Encoding&lt;BR /&gt;X-Dropbox-Response-Origin: far_remote&lt;BR /&gt;X-Dropbox-Request-Id: d4082e3cf5594d3fb6b323a695633182&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;[Content elided]&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 16:09:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568971#M26634</guid>
      <dc:creator>mepard</dc:creator>
      <dc:date>2022-01-07T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: 504 Gateway Timeout listing files in 2 accounts with code that had been working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568975#M26635</link>
      <description>&lt;P&gt;It turns out the first problem (no files listed) might be on the other end. The devices doing the uploads stopped succeeding yesterday afternoon. I'll try to find out what errors they were getting.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 16:26:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568975#M26635</guid>
      <dc:creator>mepard</dc:creator>
      <dc:date>2022-01-07T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: 504 Gateway Timeout listing files in 2 accounts with code that had been working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568985#M26636</link>
      <description>&lt;P&gt;Thanks for the report! Like in the other thread you linked to, this 504 error can be related to these operations taking a long time due to a large number of files and/or a large amount of file activity in the affected account(s). That can vary over time due to account activity and other such factors though. We'll look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be able to workaround this issue by setting recursive=false on /2/files/list_folder so I recommend giving that a try (though that may require updating your implementation accordingly).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 16:59:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/568985#M26636</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-07T16:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: 504 Gateway Timeout listing files in 2 accounts with code that had been working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/569090#M26637</link>
      <description>&lt;P&gt;Turns out a subtle but reasonable change to Dropbox upload responses uncovered a bug in our prototype devices. That caused the lack of listed files and also caused a lot of retries, which probably triggered the 504s when I dumped the cursors and restarted the listing. I resurrected the cursors and listings work now. Thanks for investigating.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 00:14:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/504-Gateway-Timeout-listing-files-in-2-accounts-with-code-that/m-p/569090#M26637</guid>
      <dc:creator>mepard</dc:creator>
      <dc:date>2022-01-08T00:14:56Z</dc:date>
    </item>
  </channel>
</rss>

