We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Alex1110
6 months agoExplorer | Level 3
Empty response and has_more true at /team_log/get_events
We are using endpoint /team_log/get_events and with some queryes it returns empty response (randomly). For example
1. URL: https://api.dropboxapi.com/2/team_log/get_events
body:
{
"limit": 1000,
"time": {
"start_time": "2024-01-01T19:48:51Z"
}
}
Response
{
"events": [],
"cursor": "AAB0zDiP0dP_Yxqh0JE4cmAp1bVGd3a....",
"has_more": true
}
2. URL: https://api.dropboxapi.com/2/team_log/get_events
body: (increase day)
{
"limit": 1000,
"time": {
"start_time": "2024-01-24T20:49:51Z"
}
}
Response
{
"events": [{}], // 1000 events
"cursor": "AAB0zDiP0dP_Yxqh0JE4cmAp1bVGd3a....",
"has_more": true
}
The most interesting.
This startDate - "2024-01-23T23:46:10Z" returns empty array and has_more: true
This startDate - "2024-01-23T23:46:11Z" returns array with 1000 elements and has_more: true
- Greg-DBDropbox Staff
The 'events' list returned by /2/team_log/get_events and /2/team_log/get_events/continue does not have a guaranteed minimum size, and so may have a size of 0 in some cases. It may vary across calls, teams, parameter values, etc. Whenever an app receives "has_more": true it should call back to /2/team_log/get_events/continue with the returned cursor.
- Alex1110Explorer | Level 3
But I'm receiving empty array in https://api.dropboxapi.com/2/team_log/get_events also. But as I understood we need just call /2/team_log/get_events/continue with cursor in loop
- Greg-DBDropbox Staff
Yes, this applies to both /2/team_log/get_events and /2/team_log/get_events/continue. In any case that you get "has_more": true, whether from /2/team_log/get_events or /2/team_log/get_events/continue, you should call back to /2/team_log/get_events/continue.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 6 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!