Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ErrorEvent {
- [Symbol(kTarget)]: WebSocket {
- _events: [Object: null prototype] {
- error: [Function],
- close: [Function],
- open: [Function],
- message: [Function]
- },
- _eventsCount: 4,
- _maxListeners: undefined,
- _binaryType: 'nodebuffer',
- _closeCode: 1006,
- _closeFrameReceived: false,
- _closeFrameSent: false,
- _closeMessage: <Buffer >,
- _closeTimer: null,
- _errorEmitted: true,
- _extensions: {},
- _paused: false,
- _protocol: '',
- _readyState: 3,
- _receiver: null,
- _sender: null,
- _socket: null,
- _bufferedAmount: 0,
- _isServer: false,
- _redirects: 0,
- _autoPong: true,
- _url: 'ws://localhost:4004/graphql',
- _req: ClientRequest {
- _events: [Object: null prototype],
- _eventsCount: 4,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- maxRequestsOnConnectionReached: false,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- strictContentLength: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- _closed: true,
- socket: [Socket],
- _header: 'GET /graphql HTTP/1.1\r\n' +
- 'Sec-WebSocket-Version: 13\r\n' +
- 'Sec-WebSocket-Key: kxmIPn2CpYOJrpH+FIavIQ==\r\n' +
- 'Connection: Upgrade\r\n' +
- 'Upgrade: websocket\r\n' +
- 'Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n' +
- 'Sec-WebSocket-Protocol: graphql-transport-ws\r\n' +
- 'Host: localhost:4004\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: nop],
- agent: undefined,
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- joinDuplicateHeaders: undefined,
- path: '/graphql',
- _ended: true,
- res: [IncomingMessage],
- aborted: true,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- reusedSocket: false,
- host: 'localhost',
- protocol: 'http:',
- [Symbol(kCapture)]: false,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype],
- [Symbol(errored)]: null,
- [Symbol(kHighWaterMark)]: 16384,
- [Symbol(kRejectNonStandardBodyWrites)]: false,
- [Symbol(kUniqueHeaders)]: null,
- [Symbol(kAborted)]: true,
- [Symbol(kError)]: undefined
- },
- [Symbol(kCapture)]: false
- },
- [Symbol(kType)]: 'error',
- [Symbol(kError)]: Error: Unexpected server response: 400
- at ClientRequest.<anonymous> (/home/kasir/projects/graphql/node_modules/.pnpm/ws@8.18.0/node_modules/ws/lib/websocket.js:913:7)
- at ClientRequest.emit (node:events:514:28)
- at ClientRequest.emit (node:domain:488:12)
- at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
- at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
- at Socket.socketOnData (node:_http_client:535:22)
- at Socket.emit (node:events:514:28)
- at Socket.emit (node:domain:488:12)
- at addChunk (node:internal/streams/readable:545:12)
- at readableAddChunkPushByteMode (node:internal/streams/readable:495:3)
- at Socket.Readable.push (node:internal/streams/readable:375:5)
- at TCP.onStreamRead (node:internal/stream_base_commons:190:23),
- [Symbol(kMessage)]: 'Unexpected server response: 400'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement