Skip to content

Infinite loop in pagination of client.iam.resourceGroups.list #2661

@cunneen

Description

@cunneen

Confirm this is a Typescript library issue and not an underlying Cloudflare API issue

  • This is an issue with the Typescript library

Describe the bug

client.iam.resourceGroups.list isn't paginating properly, resulting in an infinite loop.

To Reproduce

Cloudflare SDK v4.5.0

See the code snippet below; the loop is not ending.

Code snippets

for await (const resourceGroup of client.iam.resourceGroups.list({
    account_id: account.id,
  })) {
    console.log(`${account.id} ${resourceGroup.name} :`, resourceGroup)
  }

OS

macOS

Runtime version

Typescript 5.9.2

Library version

v4.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions