GET /chat/users/{userId}/messages endless next page token

I have a python module in production that gets chat logs from ‘GET /chat/users/{userId}/messages’ - it’s worked for about 7 months and has just stopped working. The behaviour we see is endless next page tokens with a different token and same content as the first page, so the module gets stuck in an endless loop. I opened a ticket with support and they directed me to here after some troubleshooting. It’s breaking a core production service, would really appreciate some assistance.

Hey @Sam1664
Thanks for reaching out to us and welcome to the Zoom Developer Forum, I am happy to help here.
Can you please share an example request URL and the response you are getting when you get this error.
Also a tracking ID found in the response headers so we can look further into this issue

Thanks for the response. Logs, debugging and troubleshooting is detailed in case TS2024465, if you are able to access it. can’t see a way to direct message you here.

Hi Elisa. Were you able to look at the support case?

Hey @Sam1664
Sorry for the late reply here! Looking into this now

Hi @Sam1664
Can you please reply to the DM I just sent?

Hi Elisa
I’m experiencing the same issue using the chat/users/{user}/messages API

It’s returning the same page content every time with a different nextPageToken, and gets stuck in an endless loop.

I’ve also noticed the API sometimes returns 0 messages with a nextPageToken value.

This is also causing an endless loop as it retrieves 0 messages and a new nextPageToken when calling the API with the returned nextPageToken.

Can you please assist?

Hi @MarkCollard
Thanks for reaching out to us
We are currently investigating this issue and it looks like its been clasified as a bug on our end, in the meantime, can you please increase the page_size to 50