# Zoom report meetings API goes into infinite loop

**URL:** <https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [October 30, 2023, 5:53am UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549 "2023-10-30T05:53:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![skethan](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@skethan](https://devforum.zoom.us/u/skethan)\
**Post date:** [October 30, 2023, 5:53am UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549/1 "2023-10-30T05:53:45Z")

</div>

I posted a bug with pagination few days back which made my reports API go into infinite loop

> [@Getting next\_page\_token with zero results](https://devforum.zoom.us/t/getting-next-page-token-with-zero-results/97507):
>
> I’m using report API of a specific user to get the meetings between a date range. /report/users/${userId}/meetings According to pagination specs, I will get next\_page\_token if there are results that can’t be fit into the current response. But i’m getting zero results along with next\_page\_token. For a request body { from: '2023-06-29', to: '2023-07-01', page\_size: 300, type: 'pastJoined' } I’m getting results { from: '2023-06-29', to: '2023-07-01', page\_count: 1, page\_size: 3…

Now, even with data API call is spiralling out making infinite calls producing the same data with different next\_page\_token

```auto
[
  {
    from: '2023-09-29',
    to: '2023-10-01',
    page_count: 6,
    page_size: 300,
    total_records: 2,
    next_page_token: 'v3VIVqikNf0bOQAiis55PEjxulTo0l5uEa7',
    meetings: [
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:46',
        leave_time: '09/29/2023 09:47',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      },
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:47',
        leave_time: '09/29/2023 09:51',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      }
    ]
  }
  {
    from: '2023-09-29',
    to: '2023-10-01',
    page_count: 7,
    page_size: 300,
    total_records: 2,
    next_page_token: 'uaoOWCINNnbowqQizQw0RwinoZkYibOJtJ8',
    meetings: [
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:46',
        leave_time: '09/29/2023 09:47',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      },
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:47',
        leave_time: '09/29/2023 09:51',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      }
    ]
  }
  {
    from: '2023-09-29',
    to: '2023-10-01',
    page_count: 8,
    page_size: 300,
    total_records: 2,
    next_page_token: '3QsAsYfzl1RPnlzEDkB4pfqdblKeosxino9',
    meetings: [
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:46',
        leave_time: '09/29/2023 09:47',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      },
      {
        uuid: 'uuid1',
        id: id1,
        host_id: 'hid1',
        topic: 'Daily Scrum',
        user_name: 'User 1',
        user_email: 'u1@zoom.com',
        start_time: '2023-09-29 04:16:45',
        schedule_time: '',
        join_waiting_room_time: '',
        join_time: '09/29/2023 09:47',
        leave_time: '09/29/2023 09:51',
        has_screen_share: false,
        has_recording: false,
        has_chat: false,
        meeting_encryption_status: 2,
        _id: 'zoomMeetings-uuid1-u1@zoom.com'
      }
    ]
  }
]

```

This is just part of the data that went on for a while

---

<div class="post-metadata">

**Author:** ![skethan](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@skethan](https://devforum.zoom.us/u/skethan)\
**Post date:** [October 30, 2023, 6:11am UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549/2 "2023-10-30T06:11:43Z")

</div>

Found how to replicate the bug. This is happening if the dates are not in a month

Bug coming on date ranges  
{{baseUrl}}/report/users/—/meetings?page\_size=50&from=2023-09-21&to=2023-10-30&type=pastJoined  
{{baseUrl}}/report/users/xxxx/meetings?page\_size=50&from=2023-09-29&to=2023-10-01&type=pastJoined

No Bug on date ranges  
{{baseUrl}}/report/users/—/meetings?page\_size=50&from=2023-09-21&to=2023-09-29&type=pastJoined  
{{baseUrl}}/report/users/xxxx/meetings?page\_size=50&from=2023-10-01&to=2023-10-29&type=pastJoined

---

<div class="post-metadata">

**Author:** ![skethan](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@skethan](https://devforum.zoom.us/u/skethan)\
**Post date:** [October 31, 2023, 8:34am UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549/3 "2023-10-31T08:34:11Z")

</div>

developer team, please look into this. I debugged and explained you in which cases it is failing

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 31, 2023, 4:27pm UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549/4 "2023-10-31T16:27:15Z")

</div>

Hi @skethan ,

Does this happen in other testing environment as well, like Postman?

The docs say the following:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/f/af90cb975de662c94b3567947a836f5493c788eb.png)

Which for me, “one month” can be interpreted as 30 to 31 days from the `from` date, but if this behavior persists in Postman and we can verify on our end, I’ll put a request for them to change the language to be more clear.

Thanks so much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 3, 2024, 8:04am UTC](https://devforum.zoom.us/t/zoom-report-meetings-api-goes-into-infinite-loop/97549/6 "2024-11-03T08:04:07Z")

</div>

Closed on November 3, 2024, 8:04am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
