<?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: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c# in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235132#M12888</link>
    <description>That seems to be the POST to your own site. Can you share the information I requested for the Dropbox API call itself? Thanks in advance!</description>
    <pubDate>Wed, 02 Aug 2017 15:10:42 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-08-02T15:10:42Z</dc:date>
    <item>
      <title>Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234964#M12874</link>
      <description>&lt;P&gt;I am trying to fetch a folder using C# dropbox api and I am paginating results as well but still I get timeout on it as it contains more than 1000 files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my pagination code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var children = await GetDropboxClient().Files.ListFolderAsync(dbxItem.PathLower == DROPBOX_ROOT_PATH ? string.Empty : dbxItem.PathLower);
						
while (children.HasMore)
{
      children = await GetDropboxClient().Files.ListFolderContinueAsync(children.Cursor);				
}
return children.Entries;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234964#M12874</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2019-05-29T09:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234966#M12875</link>
      <description>*moves to API area*</description>
      <pubDate>Tue, 01 Aug 2017 18:49:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234966#M12875</guid>
      <dc:creator>Mark</dc:creator>
      <dc:date>2017-08-01T18:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234994#M12876</link>
      <description>Thanks for the report. To help us look into this, please share:&lt;BR /&gt;&lt;BR /&gt;- the full error output&lt;BR /&gt;- the relevant cursor(s)&lt;BR /&gt;- the affected user IDs&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 01 Aug 2017 20:47:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234994#M12876</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-01T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234997#M12877</link>
      <description>&lt;P&gt;I want to attach a fiddler trace but I don't see an option to upload other than image files. How can I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:04:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234997#M12877</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2017-08-01T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234999#M12878</link>
      <description>&lt;P&gt;But here the call:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST https://connectoreastsftest.sharefileconnect.com/dropbox/v3/Items(e797f2aKVXZaWW5kkUdydma2IxQEFpXbp-UXmRunpCbrWhibpOiaGBoa6iYamKTpphgbW6YmW1iYGiWaKmSUlBQUW-nrJ-fn5aUml-QXFRvrFafpJhZklqQWl-gl5-fqAwA_)/Children?%24select=Owner%2FId%2CCreator%2FId%2CId%2CCreationDate%2CCreatorNameShort%2CDescription%2CFileName%2CName%2CFileCount%2CFileSizeBytes%2CHasMultipleVersions%2CPreviewStatus%2CState%2CVirusStatus%2CUri%2Curl%2CESignatureDocument%2CExpirationDate%2CMaxPreviewSize%2CStreamID%2CFileLockInfo%2CInfo%2CInfo%2FCanDeleteCurrentItem%2CProperties%2CProperties%2F%2A%2CInfo%2FCanDownload%2CInfo%2FCanSend%2CInfo%2FCanManagePermissions%2CInfo%2FCanAddNode%2CDlpInfo%2CDlpInfo%2FStatus%2CHasPendingAsyncOp%2CFavorite%2CFavorite%2F%2A%2CBundle%2CBundle%2F%2A&amp;amp;%24expand=ESignature%2CFileLockInfo%2CDlpInfo%2CInfo%2CFavorite%2CFavorite%2FItem%2CBundle%2COwner%2CCreator&amp;amp;includeDeleted=false&amp;amp;orderingMode=UseFolderOptions HTTP/1.1
Host: connectoreastsftest.sharefileconnect.com
Connection: keep-alive
Content-Length: 2
Accept: application/json, text/plain, */*
Origin: https://connectors3.sharefiletest.com
X-SF-App: ShareFileWeb
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
X-HTTP-Method-Override: GET
Content-Type: application/json
Referer: https://connectors3.sharefiletest.com/app/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,hi;q=0.6
Cookie: DbxConnector_AuthId=477b3691becf491d9139fdeae81f4104
{}&lt;/PRE&gt;&lt;P&gt;And response:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 504 GATEWAY_TIMEOUT
Content-Length: 0
Connection: keep-alive
&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:06:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/234999#M12878</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2017-08-01T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235001#M12879</link>
      <description>&lt;P&gt;But here is the request that fails:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST https://connectoreastsftest.sharefileconnect.com/dropbox/v3/Items(e797f2aKVXZaWW5kkUdydma2IxQEFpXbp-UXmRunpCbrWhibpOiaGBoa6iYamKTpphgbW6YmW1iYGiWaKmSUlBQUW-nrJ-fn5aUml-QXFRvrFafpJhZklqQWl-gl5-fqAwA_)/Children?%24select=Owner%2FId%2CCreator%2FId%2CId%2CCreationDate%2CCreatorNameShort%2CDescription%2CFileName%2CName%2CFileCount%2CFileSizeBytes%2CHasMultipleVersions%2CPreviewStatus%2CState%2CVirusStatus%2CUri%2Curl%2CESignatureDocument%2CExpirationDate%2CMaxPreviewSize%2CStreamID%2CFileLockInfo%2CInfo%2CInfo%2FCanDeleteCurrentItem%2CProperties%2CProperties%2F%2A%2CInfo%2FCanDownload%2CInfo%2FCanSend%2CInfo%2FCanManagePermissions%2CInfo%2FCanAddNode%2CDlpInfo%2CDlpInfo%2FStatus%2CHasPendingAsyncOp%2CFavorite%2CFavorite%2F%2A%2CBundle%2CBundle%2F%2A&amp;amp;%24expand=ESignature%2CFileLockInfo%2CDlpInfo%2CInfo%2CFavorite%2CFavorite%2FItem%2CBundle%2COwner%2CCreator&amp;amp;includeDeleted=false&amp;amp;orderingMode=UseFolderOptions HTTP/1.1
Host: connectoreastsftest.sharefileconnect.com
Connection: keep-alive
Content-Length: 2
Accept: application/json, text/plain, */*
Origin: https://connectors3.sharefiletest.com
X-SF-App: ShareFileWeb
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
X-HTTP-Method-Override: GET
Content-Type: application/json
Referer: https://connectors3.sharefiletest.com/app/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,hi;q=0.6
Cookie: DbxConnector_AuthId=477b3691becf491d9139fdeae81f4104
{}&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:08:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235001#M12879</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2017-08-01T21:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235132#M12888</link>
      <description>That seems to be the POST to your own site. Can you share the information I requested for the Dropbox API call itself? Thanks in advance!</description>
      <pubDate>Wed, 02 Aug 2017 15:10:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235132#M12888</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-02T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235191#M12897</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/50413"&gt;@Greg&lt;/a&gt; :I think I found the issue. Our servers hosted on AWS EC2 were timing out as the default idle time was 300s. What should be the idle connection time set to avoid timing out for files upto 1000?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; wrote:&lt;BR /&gt;That seems to be the POST to your own site. Can you share the information I requested for the Dropbox API call itself? Thanks in advance!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 20:43:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235191#M12897</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2017-08-02T20:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235193#M12898</link>
      <description>&lt;P&gt;Also, if I had paginated results using the code mentioned initially in my post, then shouldn't it get the results in batches instead of getting all at once? &amp;nbsp;I think that's what is happening and its timing out eventually.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 20:52:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235193#M12898</guid>
      <dc:creator>aksg</dc:creator>
      <dc:date>2017-08-02T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Http 504 Gateway Timeout when trying to get upto 1000 or more files in c#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235194#M12899</link>
      <description>How long each call takes, as well as how long it takes to list everything, will vary from account to account, e.g., based on the number of files/activity, so I can't offer a guarantee on how much time it would take.&lt;BR /&gt;&lt;BR /&gt;Each call to a ListFolderAsync or ListFolderContinueAsync method makes one call to the Dropbox API, with each call returning one page of results. If you have that entire code snippet, including the while loop, blocking the HTTP response for your own page, that can cause your own HTTP call to time out, since the number of Dropbox API calls/pages is unbounded. (I.e., per the above, if the user has many files, there will be many calls to make). I don't have full context on your app of course, but it sounds like perhaps you want to only return one page at a time per HTTP call to your app itself, or perhaps move this into an asynchronous code path, retrieved via AJAX call or some other mechanism.</description>
      <pubDate>Wed, 02 Aug 2017 21:12:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Http-504-Gateway-Timeout-when-trying-to-get-upto-1000-or-more/m-p/235194#M12899</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-02T21:12:29Z</dc:date>
    </item>
  </channel>
</rss>

