Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for iterPages #940

Closed
wants to merge 1 commit into from
Closed

Bugfix for iterPages #940

wants to merge 1 commit into from

Conversation

alexmakeev
Copy link

@alexmakeev alexmakeev commented Jul 18, 2024

During check of nextPage existence the field "has_more" might be used (gotten at body). Without it, iteration of, say all thread messages list brings to infinite loop.
Body field has unknown type (might be also detailed), so I used cast to "any" to skip linter/ts issues.

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

During check of nextPage existence the field "has_more" might be used (gotten at body). Without it, iteration of, say all thread messages list brings to infinite loop.
@alexmakeev alexmakeev requested a review from a team as a code owner July 18, 2024 11:15
@RobertCraigie
Copy link
Collaborator

Thanks for the PR @alexmakeev, can you share a reproduction script for the infinite loop issue?

I'm surprised that could happen as I was under the impression the API would respond with an empty array when there aren't any entries left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants