<?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: Dropbox Polling Issue - caught in loop in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Polling-Issue-caught-in-loop/m-p/579845#M27059</link>
    <description>&lt;P&gt;Thanks for the report. We'll need to look into this specifically. Can you &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; and share the affected account ID, and and some output showing the loop, including a few cursors? Be sure to redact any access/refresh tokens though. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 18:06:35 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-02-23T18:06:35Z</dc:date>
    <item>
      <title>Dropbox Polling Issue - caught in loop</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Polling-Issue-caught-in-loop/m-p/579822#M27057</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently experiencing a peculiar issue. I am retrieving and tracking the state of folders using&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;files_list_folder,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;files_list_folder_continue and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;files_list_folder_longpoll. The process is as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) If a cursor does not exist - call&amp;nbsp;&lt;SPAN&gt;files_list_folder to get the state of the folder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2) Loop over the entries, if the has_more flag is true, call&amp;nbsp;files_list_folder_continue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;3) Keep doing the above until the has_more flag is false, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;4) Once the initial state is captured from the above steps, call&amp;nbsp;files_list_folder_longpoll to listen for changes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;This works across multiple folders. However, with a certain folder, the&amp;nbsp;files_list_folder_continue &lt;/FONT&gt;prematurely&lt;FONT face="inherit"&gt;&amp;nbsp;flags has_more as false. It then goes into the longpoll loop and &lt;/FONT&gt;continuously&lt;FONT face="inherit"&gt;&amp;nbsp;breaks the poll, returning a folder metadata object with the initial folder path in the&amp;nbsp;&lt;SPAN&gt;files_list_folder call. This loops continues.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;SPAN&gt;The following has been checked:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;SPAN&gt;- The same cursor is not being reused (new cursors are being generated)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;SPAN&gt;- The problem can be reproduced in the python console&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;SPAN&gt;Is there any known issue that could cause this?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:48:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Polling-Issue-caught-in-loop/m-p/579822#M27057</guid>
      <dc:creator>DataWrangler</dc:creator>
      <dc:date>2022-04-27T12:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Polling Issue - caught in loop</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Polling-Issue-caught-in-loop/m-p/579845#M27059</link>
      <description>&lt;P&gt;Thanks for the report. We'll need to look into this specifically. Can you &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket&lt;/A&gt; and share the affected account ID, and and some output showing the loop, including a few cursors? Be sure to redact any access/refresh tokens though. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:06:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Polling-Issue-caught-in-loop/m-p/579845#M27059</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-02-23T18:06:35Z</dc:date>
    </item>
  </channel>
</rss>

