Skip to content

fix: Websocket propper error when the payload size is too big #586

fix: Websocket propper error when the payload size is too big

fix: Websocket propper error when the payload size is too big #586

Triggered via pull request November 20, 2024 08:28
Status Failure
Total duration 39s
Artifacts

pull_request.workflow.yml

on: pull_request
Matrix: Lint
Matrix: Unit Tests
Documentation Snippet Tests
0s
Documentation Snippet Tests
Matrix: Functional Tests
Fit to window
Zoom out
Zoom in

Annotations

21 errors
Lint (20): src/protocols/WebSocket.ts#L246
Replace `this.maxPayloadSize·!==·null·&&·Buffer.byteLength(JSON.stringify(request),·'utf8')·>·this.maxPayloadSize)·{` with `⏎······this.maxPayloadSize·!==·null·&&⏎······Buffer.byteLength(JSON.stringify(request),·"utf8")·>·this.maxPayloadSize`
Lint (20): src/protocols/WebSocket.ts#L247
Replace `··` with `)·{`
Lint (20): src/protocols/WebSocket.ts#L248
Insert `·`
Lint (20): src/protocols/WebSocket.ts#L382
Insert `·`
Lint (20): src/protocols/WebSocket.ts#L385
Delete `··`
Lint (20): src/protocols/WebSocket.ts#L386
Delete `··`
Lint (20): src/protocols/WebSocket.ts#L387
Delete `····`
Lint (20): src/protocols/WebSocket.ts#L388
Replace `················` with `··········`
Lint (20): src/protocols/WebSocket.ts#L390
Replace `················` with `··········`
Lint (20): src/protocols/WebSocket.ts#L391
Replace `······if·(data.result·&&·data.result.server·&&·data.result.server.maxRequestSize)·{` with `if·(⏎············data.result·&&⏎············data.result.server·&&⏎············data.result.server.maxRequestSize`
Lint (18)
The job was canceled because "_20" failed.
Lint (18): src/protocols/WebSocket.ts#L246
Replace `this.maxPayloadSize·!==·null·&&·Buffer.byteLength(JSON.stringify(request),·'utf8')·>·this.maxPayloadSize)·{` with `⏎······this.maxPayloadSize·!==·null·&&⏎······Buffer.byteLength(JSON.stringify(request),·"utf8")·>·this.maxPayloadSize`
Lint (18): src/protocols/WebSocket.ts#L247
Replace `··` with `)·{`
Lint (18): src/protocols/WebSocket.ts#L248
Insert `·`
Lint (18): src/protocols/WebSocket.ts#L382
Insert `·`
Lint (18): src/protocols/WebSocket.ts#L385
Delete `··`
Lint (18): src/protocols/WebSocket.ts#L386
Delete `··`
Lint (18): src/protocols/WebSocket.ts#L387
Delete `····`
Lint (18): src/protocols/WebSocket.ts#L388
Replace `················` with `··········`
Lint (18): src/protocols/WebSocket.ts#L390
Replace `················` with `··········`
Lint (18): src/protocols/WebSocket.ts#L391
Replace `······if·(data.result·&&·data.result.server·&&·data.result.server.maxRequestSize)·{` with `if·(⏎············data.result·&&⏎············data.result.server·&&⏎············data.result.server.maxRequestSize`