Iterating over cloudflare.hyperdrive.configs.list only returns the first page
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api
Research direction
Begin at the cloudflare.hyperdrive.configs.list entry point and trace how its async iteration handles response pages. Reproduce the issue with an account containing more than 20 Hyperdrive configs, then verify that iteration reaches every config rather than stopping after the first page.
Written by the indexing model from the issue text.
Description
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
The following code only iterates over the first page (returning max 20 elements):
for await (const config of cloudflare.hyperdrive.configs.list({
account_id: accountId,
})) {
//
}
To Reproduce
Run the code on an account with more than 20 hyperdrive configs.
Code snippets
OS
Linux / Mac
Runtime version
Not relevant
Library version
6.0.0-beta.1 but also 5.x.x
- Dominant language
- TypeScript
- Stars
- 835
- Forks
- 201
- Avg merge
- 41m
- Merged PRs (30d)
- 1
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cloudflare-typescript
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cloudflare-typescript#2821 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
cloudflare/cloudflare-typescript#2811 ·
-
workers.scripts.deployments.list() paginates the wrong field in v7.2.0Possibly taken @airshakur88 claimed this 15 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cloudflare/cloudflare-typescript#2805 · 1 comment · 1 reaction ·
-
Release CalendarOpen
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cloudflare/cloudflare-typescript#2755 · 7 comments · 1 reaction ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 15/100
cloudflare/cloudflare-typescript#2812 ·
All issues in cloudflare/cloudflare-typescript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
siyuan-note/siyuan#21692 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GetStream/stream-chat-react#3467 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
resend/resend-node#1206 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vercel-labs/ui#1139 ·
Maintainers usually reply within 1 day