You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone first time using cloudflare workers and I wanted to start on a local environment where I can debug.
I got an exmaple of cloudflare to evaluate WSS but it crashes, Do i'm doing something wrong or miniflare have a bug?
git clone https://github.com/cloudflare/workers-chat-demo
cd workers-chat-demo
miniflare
TypeError: Cannot perform Construct on a detached ArrayBuffer
at new Uint8Array (<anonymous>)
at extractBody (/usr/local/lib/node_modules/miniflare/node_modules/undici/lib/fetch/body.js:73:14)
at new Response (/usr/local/lib/node_modules/miniflare/node_modules/undici/lib/fetch/response.js:166:44)
at new Response (/usr/local/lib/node_modules/miniflare/node_modules/@miniflare/core/src/standards/http.ts:556:13)
at xxxxx/workers-chat-demo-master/src/chat.mjs:104:16
at handleErrors (xxxxxx/workers-chat-demo-master/src/chat.mjs:69:18)
at Object.fetch (xxxxx/workers-chat-demo-master/src/chat.mjs:96:18)
at /usr/local/lib/node_modules/miniflare/node_modules/@miniflare/core/src/standards/event.ts:331:19
at /usr/local/lib/node_modules/miniflare/node_modules/@miniflare/shared/src/event.ts:29:9
at EventTarget.<anonymous> (/usr/local/lib/node_modules/miniflare/node_modules/@miniflare/shared/src/event.ts:77:9)
The text was updated successfully, but these errors were encountered:
Hey! 👋 Thank you both for reporting and investigating this. Will try look into this soon. What versions of Node were you using? I'm surprised tests didn't catch this. 😕
Hi everyone first time using cloudflare workers and I wanted to start on a local environment where I can debug.
I got an exmaple of cloudflare to evaluate WSS but it crashes, Do i'm doing something wrong or miniflare have a bug?
if you then open http://localhost:8787/ and refresh page or F5 you got this error.
The text was updated successfully, but these errors were encountered: