Chat search api is failing with 500-internal server error after paginating for around 40+ pages. The issue is not very consistent. But we have noticed the issue multiple times when the search results are huge and the pagination runs for a long time.
We are accessing the endpoint /chats/search with query like q=end_timestamp[<start-date> TO <end-date>]
We are also trying to retry the same after 60 seconds. But that doesn't help either.