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

[v2] Getting "Maximum number of keys is 128" on DO storage list API. #105

Closed
vzaramel opened this issue Nov 29, 2021 · 1 comment
Closed
Labels
behaviour mismatch Different behaviour to Workers runtime fixed-in-next Fixed in next release

Comments

@vzaramel
Copy link
Contributor

Im getting a "Maximum number of keys is 128" error doing a list operation on the DurableObject's storage.
But I couldn't find any reference to this limit in cloudflare's documentation.

const updates = await this.storage.list<Uint8Array>({})
RangeError: Maximum number of keys is 128.
    at get (file:///.../node_modules/@miniflare/durable-objects/src/storage.ts:110:13)
    at list (file:///.../node_modules/@miniflare/durable-objects/src/storage.ts:144:10)
    at ReadWriteMutex.runWithRead (file:///.../node_modules/@miniflare/durable-objects/src/rwmutex.ts:49:48)
    at InputGate.runWithClosed (file:///.../node_modules/@miniflare/shared/src/sync/gate.ts:102:14)
@vzaramel vzaramel changed the title [v2] Getting Maximum number of keys is 128 on DO storage list API. [v2] Getting "Maximum number of keys is 128" on DO storage list API. Nov 29, 2021
@mrbbot mrbbot added behaviour mismatch Different behaviour to Workers runtime fixed-in-next Fixed in next release labels Nov 30, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Dec 8, 2021

Hey! 👋 miniflare@2.0.0-rc.3 has just been released, including the fix for this. You can find the changelog here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviour mismatch Different behaviour to Workers runtime fixed-in-next Fixed in next release
Projects
None yet
Development

No branches or pull requests

2 participants