<?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 list_folder returns 504 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/316925#M18795</link>
    <description>&lt;P&gt;list_folder with recurcive=true returns 504 Internal server error ;&lt;BR /&gt;How it can be? We have only 8k files there ... And how can we solve it? Limit does not help, list each sub-folder is also a bad solution for our app.&lt;BR /&gt;thanks for any help&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:08:48 GMT</pubDate>
    <dc:creator>Walentin</dc:creator>
    <dc:date>2019-05-29T09:08:48Z</dc:date>
    <item>
      <title>list_folder returns 504</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/316925#M18795</link>
      <description>&lt;P&gt;list_folder with recurcive=true returns 504 Internal server error ;&lt;BR /&gt;How it can be? We have only 8k files there ... And how can we solve it? Limit does not help, list each sub-folder is also a bad solution for our app.&lt;BR /&gt;thanks for any help&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/316925#M18795</guid>
      <dc:creator>Walentin</dc:creator>
      <dc:date>2019-05-29T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder returns 504</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/316955#M18806</link>
      <description>&lt;P&gt;Thanks for the report.&amp;nbsp;This sort of error can occur when&lt;SPAN&gt;&amp;nbsp;these operations&amp;nbsp;take a long time due to a large amount of file activity in the affected account (even if the total number of files at any given time is relatively small).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll look into it, but there are a few potential workarounds:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Use a smaller 'limit' parameter on&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" rel="noreferrer" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;&lt;SPAN&gt;. If you specify a smaller value than what you currently have, that should help reduce how long each of these calls takes and reduce the likelihood that they will fail. Note that you supply the 'limit' value to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" rel="noreferrer" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;itself, and it will apply to all results from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" rel="noreferrer" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;using the returned cursor as well. I know you mentioned trying this already, but&amp;nbsp;please try a&amp;nbsp;lower value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Switch to recursive=False when calling&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" rel="noreferrer" target="_blank"&gt;/2/files/list_folder&lt;/A&gt;&lt;SPAN&gt;. (Like the above, this follows through to the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue" rel="noreferrer" target="_blank"&gt;/2/files/list_folder/continue&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;calls.) This means you would need to call separately for any sub-folder you need though. I know you mentioned this isn't suitable for your scenario, but I'm listing it for completeness in case anyone else has the same issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:56:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/316955#M18806</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-10T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder returns 504</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/317295#M18817</link>
      <description>&lt;P&gt;I used limit 1 what can&amp;nbsp;be lower?.. Also I can't undestand how does limit work and what are file's activities? Are those&amp;nbsp;save, update, download, rename and etc?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 07:56:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/317295#M18817</guid>
      <dc:creator>Walentin</dc:creator>
      <dc:date>2018-12-12T07:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder returns 504</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/317384#M18822</link>
      <description>&lt;P&gt;Yes, by file activity I am referring to any file changes, such as upload, move, delete, etc.&lt;/P&gt;
&lt;P&gt;To clarify, do you still get the 504 error when using a limit of 1? That is the lowest possible value for that.&lt;/P&gt;
&lt;P&gt;And just for reference, did you try using recursive=false, and if so, did that&amp;nbsp;eliminate the 504 issue?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 16:46:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-returns-504/m-p/317384#M18822</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-12T16:46:48Z</dc:date>
    </item>
  </channel>
</rss>

