<?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: /2/team_log/get_events not returning events in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399085#M21858</link>
    <description>&lt;P&gt;Thanks for following up. I'm glad to hear you already tracked this down. Yes, due to some implementation details on the backend, you shouldn't rely on the size of the "events" array. You should always check "has_more" itself.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 15:32:04 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-02-25T15:32:04Z</dc:date>
    <item>
      <title>/2/team_log/get_events not returning events</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399007#M21852</link>
      <description>&lt;P&gt;There was a file_add event which happened at&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"timestamp":"2020-02-10T19:10:20Z"&lt;/PRE&gt;
&lt;P&gt;And during the day we were making API calls every 15 seconds with the following parameters,&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t selected-segment"&gt;&lt;SPAN class="t h"&gt;2020-02-10&lt;SPAN&gt;--&lt;/SPAN&gt;19:52:21.101 https&lt;/SPAN&gt;://api.dropboxapi.com/2/team_log/get_events&lt;SPAN&gt;, {"&lt;/SPAN&gt;limit&lt;SPAN&gt;"&lt;/SPAN&gt;:100&lt;SPAN&gt;,"&lt;/SPAN&gt;time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;{"&lt;/SPAN&gt;start_time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;2020-02-10T16:52:38Z&lt;SPAN&gt;","&lt;/SPAN&gt;end_time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;2020-02-10T19:52:11Z&lt;SPAN&gt;"},"&lt;/SPAN&gt;category&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t a"&gt;file_operations&lt;/SPAN&gt;&lt;SPAN&gt;"}&lt;BR /&gt;2020-02-10--&lt;SPAN class="t h"&gt;19:52:35.579 https://api.dropboxapi.com/2/team_log/get_events, {"limit":100,"time":{"start_time":"2020-02-10T16:52:39Z","end_time":"2020-02-10T19:52:25Z"},"category":"&lt;SPAN class="t a"&gt;file_operations&lt;/SPAN&gt;"} &lt;BR /&gt;2020-02-10--19:52:50.122 https://api.dropboxapi.com/2/team_log/get_events, {"limit":100,"time":{"start_time":"2020-02-10T16:52:40Z","end_time":"2020-02-10T19:52:40Z"},"category":"&lt;SPAN class="t a"&gt;file_operations&lt;/SPAN&gt;"}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;2020&lt;/SPAN&gt;-02-11&lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;07:43:15&lt;/SPAN&gt;.&lt;SPAN class="t"&gt;370 &lt;/SPAN&gt;&lt;/SPAN&gt;https://api.dropboxapi.com/2/team_log/get_events, {"limit":100,"time":{"start_time":"2020-02-10T17:41:37Z","end_time":"2020-02-11T07:43:05Z"},"category":"file_operations"}&lt;BR /&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t selected-segment"&gt;2020&lt;/SPAN&gt;-02-11&lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;07:43:29&lt;/SPAN&gt;.&lt;SPAN class="t"&gt;818 &lt;SPAN class="t selected-segment"&gt;https&lt;/SPAN&gt;://api.dropboxapi.com/2/team_log/get_events&lt;SPAN&gt;, {"&lt;/SPAN&gt;limit&lt;SPAN&gt;"&lt;/SPAN&gt;:100&lt;SPAN&gt;,"&lt;/SPAN&gt;time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;{"&lt;/SPAN&gt;start_time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;2020-02-10T17:41:38Z&lt;SPAN&gt;","&lt;/SPAN&gt;end_time&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;2020-02-11T07:43:19Z&lt;SPAN&gt;"},"&lt;/SPAN&gt;category&lt;SPAN&gt;"&lt;/SPAN&gt;:&lt;SPAN&gt;"&lt;/SPAN&gt;file_operations&lt;SPAN&gt;"}&lt;BR /&gt;&lt;BR /&gt;And finally at the following time we started receiving events which included the event which happened at 2020-02-10T19:10:20Z&lt;BR /&gt;2020-02-11--07:43:44.336 https://api.dropboxapi.com/2/team_log/get_events, {"limit":100,"time":{"start_time":"2020-02-10T17:41:39Z","end_time":"2020-02-11T07:43:34Z"},"category":"file_operations"} &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;In another process which was using cursors, we got the same event much before (around "&lt;SPAN class="t"&gt;&lt;SPAN class="t selected-segment"&gt;2020&lt;/SPAN&gt;-02-10&lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;22:26:50&lt;/SPAN&gt;.&lt;SPAN class="t"&gt;812")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;Is it possible that we might not see events some times when using start/end time, but using the cursor you will receive the event?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:40:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399007#M21852</guid>
      <dc:creator>VeraSecurity</dc:creator>
      <dc:date>2020-02-25T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: /2/team_log/get_events not returning events</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399022#M21854</link>
      <description>&lt;P&gt;This is another instance which was observed in manual testing,&lt;/P&gt;&lt;P&gt;There is a event with&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"timestamp"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"2020-02-24T09:31:44Z"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When issuing a request with,&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{"limit":100,"time":{"start_time":"2020-02-24T09:31:42Z","end_time":"2020-02-25T09:40:00Z"},"category":"file_operations"}&lt;/PRE&gt;The response is,&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
    "events": [],
    "cursor": "AAC41C6wZ7p3ovi7dlNz0-ghEj-vgnWs16cWMnYkn9-IyZ4b7WfHxnCcFhBxsAt6wjkUj3Vlm6A3F5Zbfx-lODcTbj9Il0kUUQHXoPvbmTI1WUvcHvvGw4EQiq_DYlx_9P-O6HAXLBcWHi4-qiskVzq6yKjsDh3lvI50qJpNkYAjgQrjkBqJP1HYF5eSXngJHjaj0guS9wrQzaUfWkNPqNqPQDCZCe6SmtoV2bwa6Ts-6nRHd9tXAZqCsv5_2clK28xvqrb7iIJITB81LI6qwvezitdzV8TFSbUM-uVzGuHalmn9qaWmgLBBqtW5E9nQ1amrenoVUXE9ElBKwteY5nHJ54z4Pdd3SBKIoWWsPCtLOlvM0pB7GOpz3XEsSCJ5PdHaO346xLRO_kUInf9quPNdPvieuw2DIUTC0Z3NhWie-w",
    "has_more": true
}&lt;/PRE&gt;So eventhough there is a event in the timerange, no events are returned but "has_more=true" and if I use the cursor and /continue, the event is returned.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just noticed in the documentation that "&lt;SPAN&gt;Note that has_more may be true, even if events is empty". So we cannot just rely on events being empty to stop polling. Looks like this is the problem we are running into.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:05:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399022#M21854</guid>
      <dc:creator>VeraSecurity</dc:creator>
      <dc:date>2020-02-25T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: /2/team_log/get_events not returning events</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399085#M21858</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you already tracked this down. Yes, due to some implementation details on the backend, you shouldn't rely on the size of the "events" array. You should always check "has_more" itself.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 15:32:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/2-team-log-get-events-not-returning-events/m-p/399085#M21858</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-25T15:32:04Z</dc:date>
    </item>
  </channel>
</rss>

