-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Unexpected server response: 101
running puppeteer from npm specifier
#17496
Comments
I'm also seeing this same underlying error from IncomingMessageForClient detailsIncomingMessageForClient { _readableState: yt { objectMode: false, highWaterMark: 16384, buffer: { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: null, ended: false, endEmitted: false, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: "utf8", awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: false, decoder: null, encoding: null, [Symbol(kPaused)]: null }, _events: {}, _eventsCount: 0, _maxListeners: undefined, reader: undefined, response: Response { body: null, bodyUsed: false, headers: Headers { connection: "Upgrade", "sec-websocket-accept": "g0AYqDeXabq31vMLoNTG18fiB6E=", upgrade: "websocket" }, ok: false, redirected: false, status: 101, statusText: "Switching Protocols", url: "http://localhost:3000/websocket" }, socket: Socket { _readableState: yt { objectMode: false, highWaterMark: 16384, buffer: { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: null, ended: false, endEmitted: false, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: "utf8", awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: false, decoder: null, encoding: null, [Symbol(kPaused)]: null }, _events: { end: [Function: _onReadableStreamEnd] }, _eventsCount: 1, _maxListeners: undefined, _writableState: Se { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: "utf8", length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound $a], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, allowHalfOpen: false, server: null, _server: null, _peername: undefined, _sockname: undefined, _pendingData: null, _pendingEncoding: "", _host: null, _parent: null, setTimeout: [Function: setStreamTimeout], connecting: false, [Symbol(kCapture)]: false, [Symbol(asyncIdSymbol)]: -1, [Symbol(kHandle)]: null, [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, [Symbol(kCapture)]: false } ErrorEvent detailsonerror ErrorEvent { [Symbol(kTarget)]: WebSocket { _events: { open: [Function: onOpen] { [Symbol(kIsForOnEventAttribute)]: true, [Symbol(kListener)]: [Function] }, close: [Function: onClose] { [Symbol(kIsForOnEventAttribute)]: true, [Symbol(kListener)]: [Function] }, error: [Function: onError] { [Symbol(kIsForOnEventAttribute)]: true, [Symbol(kListener)]: [Function] }, message: [Function: onMessage] { [Symbol(kIsForOnEventAttribute)]: true, [Symbol(kListener)]: [Function] }, pong: [Function] }, _eventsCount: 5, _maxListeners: undefined, _binaryType: "nodebuffer", _closeCode: 1006, _closeFrameReceived: false, _closeFrameSent: false, _closeMessage: Buffer(0) [], _closeTimer: null, _extensions: {}, _paused: false, _protocol: "", _readyState: 2, _receiver: null, _sender: null, _socket: null, _bufferedAmount: 0, _isServer: false, _redirects: 0, _url: "ws://localhost:3000/websocket", _originalIpc: false, _originalSecure: false, _originalHostOrSocketPath: "localhost:3000", _req: null, [Symbol(kCapture)]: false }, [Symbol(kType)]: "error", [Symbol(kError)]: Error: Unexpected server response: 101 at ClientRequest. (file:///home/mischka/projects/basic-interval-app/node_modules/.deno/ws@8.12.0/node_modules/ws/lib/websocket.js:889:7) at ClientRequest.emit (internal:deno_node/polyfills/_events.mjs:379:28) at ClientRequest._final (internal:deno_node/polyfills/http.ts:171:14), [Symbol(kMessage)]: "Unexpected server response: 101" } |
Ah, I see the root cause of this is basically discussed in #17847: http |
Same issue trying to use Example code with the problem: https://gist.github.com/barthuijgen/37b19fad82b8f584477ef94052caa702 |
I'm also facing the same issue and couldn't figure it out yet. |
We are working towards this, I'm gonna close this one in favor of #18913 |
Run the following with
--allow-all
Fails with:
The text was updated successfully, but these errors were encountered: