max-mapper / max-mapper/websocket-stream
Frequent service clientError Error: invalid status code: 12592
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 667
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
This is the stack
clientError Error: invalid status code: 12592
at Receiver.controlMessage (/data/www/prod/mqtt-server/node_modules/ws/lib/Receiver.js:414:22)
at Receiver.getData (/data/www/prod/mqtt-server/node_modules/ws/lib/Receiver.js:325:12)
at Receiver.startLoop (/data/www/prod/mqtt-server/node_modules/ws/lib/Receiver.js:165:16)
at Receiver.add (/data/www/prod/mqtt-server/node_modules/ws/lib/Receiver.js:139:10)
at Socket. (/data/www/prod/mqtt-server/node_modules/ws/lib/WebSocket.js:138:22)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
type: 'error',
target: WebSocket {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
readyState: 3,
bytesReceived: 587,
extensions: null,
protocol: 'mqtt',
_binaryType: 'nodebuffer',
_finalize: [Function: bound finalize] { __ultron: 356 },
_closeFrameReceived: false,
_closeFrameSent: false,
_closeMessage: '',
_closeTimer: null,
_finalized: true,
_closeCode: 1002,
_receiver: null,
_sender: null,
_socket: null,
_ultron: null,
protocolVersion: 13,
_maxPayload: 104857600,
_isServer: true,
[Symbol(kCapture)]: false
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported stack in node_modules/ws/lib/Receiver.js, especially Receiver.controlMessage and its callers in Receiver.js and WebSocket.js. Determine what produces status code 12592 for a server using the mqtt protocol, then reproduce the failure and document a verified fix or regression coverage; the issue does not specify expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100