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
I am on a Windows PC using Miniflare 2.0.0-next.3.
I am testing a Worker which passes a WebSocket connection off to a Durable Object which in turn passes the connection off to a second Durable Object. When I terminate the connection to this second Durable Object, I receive this error and Miniflare crashes:
TypeError: Invalid WebSocket close code.
at EventTarget.close (file:///C:/Users/tim/AppData/Local/Volta/tools/image/packages/miniflare/node_modules/miniflare/node_modules/@miniflare/web-sockets/src/websocket.ts:110:29)
at WebSocket.<anonymous> (file:///C:/Users/tim/AppData/Local/Volta/tools/image/packages/miniflare/node_modules/miniflare/node_modules/@miniflare/web-sockets/src/couple.ts:35:30)
at WebSocket.emit (node:events:402:35)
at WebSocket.emitClose (C:\Users\tim\AppData\Local\Volta\tools\image\packages\miniflare\node_modules\miniflare\node_modules\ws\lib\websocket.js:247:10)
at Receiver.receiverOnFinish (C:\Users\tim\AppData\Local\Volta\tools\image\packages\miniflare\node_modules\miniflare\node_modules\ws\lib\websocket.js:1011:20)
at Receiver.emit (node:events:390:28)
at finish (node:internal/streams/writable:750:10)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
I am terminating the connection to that second Durable Object by ^C forcibly killing my local client process.
The text was updated successfully, but these errors were encountered:
Hey! 👋 miniflare@2.0.0-rc.1 has just been released, including a fix for this. You can find the changelog here. Thanks for reporting this, and please let me know if you have any other issues.
I am on a Windows PC using Miniflare
2.0.0-next.3
.I am testing a Worker which passes a WebSocket connection off to a Durable Object which in turn passes the connection off to a second Durable Object. When I terminate the connection to this second Durable Object, I receive this error and Miniflare crashes:
I am terminating the connection to that second Durable Object by
^C
forcibly killing my local client process.The text was updated successfully, but these errors were encountered: