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
Wrangler would disconnect and need to restart manually after waking up from sleep:
./node_modules/ws/lib/sender.js:162
throw new TypeError('First argument must be a valid error code number');
^
TypeError: First argument must be a valid error code number
at Sender.close (./node_modules/ws/lib/sender.js:162:13)
at WebSocket.close (./node_modules/ws/lib/websocket.js:300:18)
at ./node_modules/@miniflare/web-sockets/src/couple.ts:61:10
at ./node_modules/@miniflare/shared/src/event.ts:29:9
at ./node_modules/@miniflare/web-sockets/src/websocket.ts:114:38
at AsyncLocalStorage.run (node:async_hooks:330:14)
at RequestContext.runWith (./node_modules/@miniflare/shared/src/context.ts:134:34)
at _WebSocket.<anonymous> (./node_modules/@miniflare/web-sockets/src/websocket.ts:114:24)
at _WebSocket.[nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20)
at _WebSocket.dispatchEvent (node:internal/event_target:673:26)
Waiting for the debugger to disconnect...
The text was updated successfully, but these errors were encountered:
So it basically sended a wrong number (or sth other than number) to ws and:
if(code===undefined){buf=EMPTY_BUFFER;}elseif(typeofcode!=='number'||!isValidStatusCode(code)){thrownewTypeError('First argument must be a valid error code number');
Hey! 👋 I think this should've been fixed with cloudflare/miniflare#495, so I'm going to close this out. Feel free to reopen if this is still a problem using the latest version of Wrangler. 👍
What version of
Wrangler
are you using?2.6.2
What operating system are you using?
macos 13.1 arm64
Describe the Bug
Wrangler would disconnect and need to restart manually after waking up from sleep:
The text was updated successfully, but these errors were encountered: