We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've recently been updating my dependences going from miniflare 2.3.0 to 2.8.2 and I've started to get a bunch of errors from requests
TypeError: Invalid state: chunk ArrayBuffer is zero-length or detached at Object.pull (node_modules/@miniflare/core/src/standards/streams.ts:141:22)
I'm not entirely sure how to track this down as the unit tests work fine in 2.7.X but breaks in any of the 2.8 versions.
I'm running it in the jest environment versioned the same as the miniflare environment.
I imagine it's something to do with the changes required for #168 but as far as I can tell I'm not using any features that weren't available.
The text was updated successfully, but these errors were encountered:
I've tracked it down to this if block in streams.ts
https://github.com/cloudflare/miniflare/blob/master/packages/core/src/standards/streams.ts#L130-L142
The reader can sometimes get back a 0 ArrayBuffer
console.log(done) VM1294:1 false undefined console.log(value) VM1349:1 Uint8Array [buffer: ArrayBuffer(0), byteLength: 0, byteOffset: 0, length: 0]buffer: ArrayBuffer(0) byteLength: 0byteOffset: 0length: 0Symbol(Symbol.toStringTag): (...)[[Prototype]]: TypedArray undefined
Sorry, something went wrong.
d36f399
Hey! 👋 Thanks for reporting and identifying the cause of this issue. 🙂 Should be fixed in the next release. 👍
@mrbbot great to hear! Do you have a particular release cadence?
Hey! 👋 Miniflare 2.9.0 has just been released, which implements a fix. You can find the full changelog here.
2.9.0
No branches or pull requests
I've recently been updating my dependences going from miniflare 2.3.0 to 2.8.2 and I've started to get a bunch of errors from requests
I'm not entirely sure how to track this down as the unit tests work fine in 2.7.X but breaks in any of the 2.8 versions.
I'm running it in the jest environment versioned the same as the miniflare environment.
I imagine it's something to do with the changes required for #168 but as far as I can tell I'm not using any features that weren't available.
The text was updated successfully, but these errors were encountered: