<?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 team_log/get_events sometimes missing the last event in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/558219#M26391</link>
    <description>&lt;P&gt;I can't figure out the exact circumstances, but sometimes, when sending a &lt;EM&gt;team_log/get_events&lt;/EM&gt; request, the latest event is missing in the answer.&lt;/P&gt;
&lt;P&gt;We are using Dropbox's webhook system to get notified whenever a new event is triggered. When we get notified, we use the &lt;EM&gt;team_log/get_events&lt;/EM&gt; endpoint to retrieve the events. But we noticed that sometimes, the last event is missing from the answer and every following requests to the endpoint will have the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So as a test, I added and deleted a new text file from Dropbox. When the webhook have been triggered, I sent two consecutive requests.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Here is the answer I got when sending the first request :&lt;/U&gt; (We only get the &lt;STRONG&gt;Add&lt;/STRONG&gt; event with &lt;EM&gt;the has_more&lt;/EM&gt; boolean as false)&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="javascript"&gt;{
  "events": [
    {
      "timestamp": "2021-11-17T14:40:17Z",
      "event_category": { ".tag": "file_operations" },
      "actor": {
        ".tag": "admin",
        "admin": {
          ".tag": "team_member",
          "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
          "display_name": "Xalbat Echeverria",
          "email": "xecheverria@isdecisions.com",
          "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
        }
      },
      "origin": {
        "geo_location": {
          "city": "Anglet",
          "region": "Nouvelle-Aquitaine",
          "country": "FR",
          "ip_address": "185.182.168.24"
        },
        "access_method": {
          ".tag": "end_user",
          "end_user": {
            ".tag": "desktop",
            "session_id": "dbdsid:AACbqF35lbBz44w8my11bsfQsldXapES9Ro"
          }
        }
      },
      "involve_non_team_member": false,
      "context": {
        ".tag": "team_member",
        "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
        "display_name": "Xalbat Echeverria",
        "email": "xecheverria@isdecisions.com",
        "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
      },
      "participants": [],
      "assets": [
        {
          ".tag": "file",
          "path": {
            "contextual": "/Test X/New Text Document.txt",
            "namespace_relative": {
              "ns_id": "1861968209",
              "relative_path": "/New Text Document.txt",
              "is_shared_namespace": true
            }
          },
          "display_name": "New Text Document.txt",
          "file_id": "id:rb8b75y3ODAAAAAAAAAAOQ"
        }
      ],
      "event_type": {
        ".tag": "file_add",
        "description": "Added files and/or folders"
      },
      "details": { ".tag": "file_add_details" }
    }
  ],
  "cursor": "AAD1hlUH-xf6DZe2MVFmdviIy9iTIcTIN-L_yRSGJRcdX8As3Wxr9pzJI722iiBOa9isB-nixKAbK3jYtK0k_Q-jU_vMAS4zPMbGpf-EnhrcKYsIgMNmkXXhMq6hokr_1Ma8EhfSDU7Pd4qiAFWGDC0Fao83Tx9iSkRhnmrKv2xP-O8paIkLxnzzmU1AWho6JOnN_jxQ--CxLoTu67zBdzA6kFD_s41n22anmHIPQhllnvs_o3XjnBdJM6amGjyvhN7-bSpQkcK-nkIsBJkw1SMOnDcNhaPopc70mYSsPuZahOwiUN_XzKyYukrF6YzxGW8rMOF3Qj2eZlXABoYF1sKt-8sn0YqileQdtc_lhpK3BGZ4ldbl5o-Lbd-M76oGIJuQz041wL-NrOD7QjMq1lUTwzpa1RBwpLWrUKigl3BmXA",
  "has_more": false
}&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;U&gt;And here is the answer to the following request :&lt;/U&gt; (This time we get the &lt;STRONG&gt;Delete&lt;/STRONG&gt; event)&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="javascript"&gt;{
  "events": [
    {
      "timestamp": "2021-11-17T15:11:14Z",
      "event_category": { ".tag": "file_operations" },
      "actor": {
        ".tag": "admin",
        "admin": {
          ".tag": "team_member",
          "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
          "display_name": "Xalbat Echeverria",
          "email": "xecheverria@isdecisions.com",
          "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
        }
      },
      "origin": {
        "geo_location": {
          "city": "Anglet",
          "region": "Nouvelle-Aquitaine",
          "country": "FR",
          "ip_address": "185.182.168.24"
        },
        "access_method": {
          ".tag": "end_user",
          "end_user": {
            ".tag": "desktop",
            "session_id": "dbdsid:AACbqF35lbBz44w8my11bsfQsldXapES9Ro"
          }
        }
      },
      "involve_non_team_member": false,
      "context": {
        ".tag": "team_member",
        "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
        "display_name": "Xalbat Echeverria",
        "email": "xecheverria@isdecisions.com",
        "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
      },
      "participants": [],
      "assets": [
        {
          ".tag": "file",
          "path": {
            "contextual": "/Test X/New Text Document.txt",
            "namespace_relative": {
              "ns_id": "1861968209",
              "relative_path": "/New Text Document.txt",
              "is_shared_namespace": true
            }
          },
          "display_name": "New Text Document.txt",
          "file_id": "id:rb8b75y3ODAAAAAAAAAAOQ",
          "file_size": 0
        }
      ],
      "event_type": {
        ".tag": "file_delete",
        "description": "Deleted files and/or folders"
      },
      "details": { ".tag": "file_delete_details" }
    }
  ],
  "cursor": "AACaqNQXMiNfSfGwmBwHHBAtVAcP5r4hg_UsGdbxee-7Cdsz1dmer-iSfAlHC51QavOj4tlYvJE7z1saP9EPNSeFd1EwHsjZ84o_8iPQHhQOzf9L02LryljIb58Yd01JxBjk9rEWKY_lZuDytd21pHAXBZ-pO3XAMRn7rSin-G6kol-YJ1hQHbrIvat8HWan474TFtlK6TCArPWbgSuevZGRyitwT5YcBN_U-IPWkzjMuKgZQoLl2MlkXGuiGlAHpEIB1rOfT0Ni5yWHQwsjjJzfvpq5Ds83OGfr-8VE37tTizrmbL_MM4hWXk3QT1R2Hs1lFEWtedsx4siDS78K7B2PeiFE38eaFptW4zgO7uJ8Z2AJ7hao7YmTOlzVJGSwBQSJoV-_uCE34UfIi7bVEb4R9iUSEewZIjP5CIkATKZbdw",
  "has_more": false
}&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;I don't understand why sometimes the last event is missing, and it is causing us some troubles with applications that are in production.&lt;/P&gt;
&lt;P&gt;Is this a known issue ? Am I missing something ?&lt;/P&gt;
&lt;P&gt;Tell me if you need any more infos.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 17:05:28 GMT</pubDate>
    <dc:creator>Xalbat</dc:creator>
    <dc:date>2021-11-30T17:05:28Z</dc:date>
    <item>
      <title>team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/558219#M26391</link>
      <description>&lt;P&gt;I can't figure out the exact circumstances, but sometimes, when sending a &lt;EM&gt;team_log/get_events&lt;/EM&gt; request, the latest event is missing in the answer.&lt;/P&gt;
&lt;P&gt;We are using Dropbox's webhook system to get notified whenever a new event is triggered. When we get notified, we use the &lt;EM&gt;team_log/get_events&lt;/EM&gt; endpoint to retrieve the events. But we noticed that sometimes, the last event is missing from the answer and every following requests to the endpoint will have the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So as a test, I added and deleted a new text file from Dropbox. When the webhook have been triggered, I sent two consecutive requests.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Here is the answer I got when sending the first request :&lt;/U&gt; (We only get the &lt;STRONG&gt;Add&lt;/STRONG&gt; event with &lt;EM&gt;the has_more&lt;/EM&gt; boolean as false)&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="javascript"&gt;{
  "events": [
    {
      "timestamp": "2021-11-17T14:40:17Z",
      "event_category": { ".tag": "file_operations" },
      "actor": {
        ".tag": "admin",
        "admin": {
          ".tag": "team_member",
          "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
          "display_name": "Xalbat Echeverria",
          "email": "xecheverria@isdecisions.com",
          "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
        }
      },
      "origin": {
        "geo_location": {
          "city": "Anglet",
          "region": "Nouvelle-Aquitaine",
          "country": "FR",
          "ip_address": "185.182.168.24"
        },
        "access_method": {
          ".tag": "end_user",
          "end_user": {
            ".tag": "desktop",
            "session_id": "dbdsid:AACbqF35lbBz44w8my11bsfQsldXapES9Ro"
          }
        }
      },
      "involve_non_team_member": false,
      "context": {
        ".tag": "team_member",
        "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
        "display_name": "Xalbat Echeverria",
        "email": "xecheverria@isdecisions.com",
        "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
      },
      "participants": [],
      "assets": [
        {
          ".tag": "file",
          "path": {
            "contextual": "/Test X/New Text Document.txt",
            "namespace_relative": {
              "ns_id": "1861968209",
              "relative_path": "/New Text Document.txt",
              "is_shared_namespace": true
            }
          },
          "display_name": "New Text Document.txt",
          "file_id": "id:rb8b75y3ODAAAAAAAAAAOQ"
        }
      ],
      "event_type": {
        ".tag": "file_add",
        "description": "Added files and/or folders"
      },
      "details": { ".tag": "file_add_details" }
    }
  ],
  "cursor": "AAD1hlUH-xf6DZe2MVFmdviIy9iTIcTIN-L_yRSGJRcdX8As3Wxr9pzJI722iiBOa9isB-nixKAbK3jYtK0k_Q-jU_vMAS4zPMbGpf-EnhrcKYsIgMNmkXXhMq6hokr_1Ma8EhfSDU7Pd4qiAFWGDC0Fao83Tx9iSkRhnmrKv2xP-O8paIkLxnzzmU1AWho6JOnN_jxQ--CxLoTu67zBdzA6kFD_s41n22anmHIPQhllnvs_o3XjnBdJM6amGjyvhN7-bSpQkcK-nkIsBJkw1SMOnDcNhaPopc70mYSsPuZahOwiUN_XzKyYukrF6YzxGW8rMOF3Qj2eZlXABoYF1sKt-8sn0YqileQdtc_lhpK3BGZ4ldbl5o-Lbd-M76oGIJuQz041wL-NrOD7QjMq1lUTwzpa1RBwpLWrUKigl3BmXA",
  "has_more": false
}&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;U&gt;And here is the answer to the following request :&lt;/U&gt; (This time we get the &lt;STRONG&gt;Delete&lt;/STRONG&gt; event)&lt;/P&gt;
&lt;LI-SPOILER&gt;&lt;LI-CODE lang="javascript"&gt;{
  "events": [
    {
      "timestamp": "2021-11-17T15:11:14Z",
      "event_category": { ".tag": "file_operations" },
      "actor": {
        ".tag": "admin",
        "admin": {
          ".tag": "team_member",
          "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
          "display_name": "Xalbat Echeverria",
          "email": "xecheverria@isdecisions.com",
          "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
        }
      },
      "origin": {
        "geo_location": {
          "city": "Anglet",
          "region": "Nouvelle-Aquitaine",
          "country": "FR",
          "ip_address": "185.182.168.24"
        },
        "access_method": {
          ".tag": "end_user",
          "end_user": {
            ".tag": "desktop",
            "session_id": "dbdsid:AACbqF35lbBz44w8my11bsfQsldXapES9Ro"
          }
        }
      },
      "involve_non_team_member": false,
      "context": {
        ".tag": "team_member",
        "account_id": "dbid:AAA4IxcQI59v7ONmxBTvJuVN7iMmLEAR3IY",
        "display_name": "Xalbat Echeverria",
        "email": "xecheverria@isdecisions.com",
        "team_member_id": "dbmid:AAAAlVKFr0jmMrY1FT_1Wbh-1LJUJrxuHwM"
      },
      "participants": [],
      "assets": [
        {
          ".tag": "file",
          "path": {
            "contextual": "/Test X/New Text Document.txt",
            "namespace_relative": {
              "ns_id": "1861968209",
              "relative_path": "/New Text Document.txt",
              "is_shared_namespace": true
            }
          },
          "display_name": "New Text Document.txt",
          "file_id": "id:rb8b75y3ODAAAAAAAAAAOQ",
          "file_size": 0
        }
      ],
      "event_type": {
        ".tag": "file_delete",
        "description": "Deleted files and/or folders"
      },
      "details": { ".tag": "file_delete_details" }
    }
  ],
  "cursor": "AACaqNQXMiNfSfGwmBwHHBAtVAcP5r4hg_UsGdbxee-7Cdsz1dmer-iSfAlHC51QavOj4tlYvJE7z1saP9EPNSeFd1EwHsjZ84o_8iPQHhQOzf9L02LryljIb58Yd01JxBjk9rEWKY_lZuDytd21pHAXBZ-pO3XAMRn7rSin-G6kol-YJ1hQHbrIvat8HWan474TFtlK6TCArPWbgSuevZGRyitwT5YcBN_U-IPWkzjMuKgZQoLl2MlkXGuiGlAHpEIB1rOfT0Ni5yWHQwsjjJzfvpq5Ds83OGfr-8VE37tTizrmbL_MM4hWXk3QT1R2Hs1lFEWtedsx4siDS78K7B2PeiFE38eaFptW4zgO7uJ8Z2AJ7hao7YmTOlzVJGSwBQSJoV-_uCE34UfIi7bVEb4R9iUSEewZIjP5CIkATKZbdw",
  "has_more": false
}&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;I don't understand why sometimes the last event is missing, and it is causing us some troubles with applications that are in production.&lt;/P&gt;
&lt;P&gt;Is this a known issue ? Am I missing something ?&lt;/P&gt;
&lt;P&gt;Tell me if you need any more infos.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:05:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/558219#M26391</guid>
      <dc:creator>Xalbat</dc:creator>
      <dc:date>2021-11-30T17:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/561147#M26453</link>
      <description>&lt;P&gt;Apologies for the lack of response here! (I wasn't notified of this post for some reason.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, it can take some time to propagate events to the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events" target="_self"&gt;/2/team_log/get_events&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events-continue" target="_self"&gt;/continue&lt;/A&gt;] results, so you may not always see the latest results immediately. So, in some cases like this, you may call before all of the latest events are available. If you're seeing this happen regularly and it's causing issues for your app, you may want to add a delay between receiving the webhook notification and calling &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events" target="_self"&gt;/2/team_log/get_events&lt;/A&gt;[&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events-continue" target="_self"&gt;/continue&lt;/A&gt;].&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 15:57:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/561147#M26453</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-11-29T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563283#M26505</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry for the delayed answer, I had to work on another project for the last week.&lt;/P&gt;&lt;P&gt;As a temporary solution, we'll delay all of our requests to this endpoint. But I have to tell that this behaviour is a bit strange.&lt;/P&gt;&lt;P&gt;Dropbox notifies us of a new event, though the API can't tell us straight away what this event is.&lt;/P&gt;&lt;P&gt;I understand there surely are some limitations on your side, but is this something your team is looking to fix in the future ?&lt;/P&gt;&lt;P&gt;It would surely be way more practical if notifications and data were synchronized.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:10:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563283#M26505</guid>
      <dc:creator>Xalbat</dc:creator>
      <dc:date>2021-12-09T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563348#M26507</link>
      <description>&lt;P&gt;Thanks for the feedback! I can't make any promises, but I'll bring this up with the team to see if we can improve this in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:21:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563348#M26507</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-09T16:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563506#M26508</link>
      <description>&lt;P&gt;+1 here&lt;/P&gt;&lt;P&gt;Any reason to notify when the data are not ready?&lt;/P&gt;&lt;P&gt;It would be acceptable to receive a notification several seconds/minutes after a file operation but receiving the notification before the file operation is registered is weird.&lt;/P&gt;&lt;P&gt;There should a be a technical constraint on your side but this forces client applications to implement a fix (delay the call to &lt;EM&gt;get_events&lt;/EM&gt;) that will need to be rolled back once you will fix it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 10:29:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563506#M26508</guid>
      <dc:creator>Stricnis</dc:creator>
      <dc:date>2021-12-10T10:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: team_log/get_events sometimes missing the last event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563541#M26511</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/692106"&gt;@Stricnis&lt;/a&gt; Thanks for the feedback! There are some implementation details of how the various parts of the Dropbox back-end are built and interact that can result in this, but I've sent this along to the team to see if we can improve this in the future. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 14:50:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/team-log-get-events-sometimes-missing-the-last-event/m-p/563541#M26511</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-10T14:50:37Z</dc:date>
    </item>
  </channel>
</rss>

