{"record":{"id":"a79fff78a02a6233","repo":"earendil-works/pi","slug":"frame-length-framelength-exceeds-configured-lim","errorCode":null,"errorMessage":"Frame length ${frameLength} exceeds configured limit of ${this.maxFrameLength}","messagePattern":"Frame length (.+?) exceeds configured limit of (.+?)","errorType":"exception","errorClass":"FrameError","httpStatus":null,"severity":"error","filePath":"packages/protocol/src/framing.ts","lineNumber":163,"sourceCode":"\n\tend(): void {\n\t\tif (this.state === \"ended\") throw new FrameError(\"Frame decoder has ended\");\n\t\tif (this.state === \"failed\") throw new FrameError(\"Frame decoder has failed\");\n\t\tif (this.headerLength !== 0 || this.expectedPayloadLength !== undefined) {\n\t\t\tthis.fail(\"Truncated frame at end of stream\");\n\t\t}\n\t\tthis.state = \"ended\";\n\t}\n\n\tprivate fail(message: string): never {\n\t\tthis.state = \"failed\";\n\t\tthis.headerLength = 0;\n\t\tthis.payloadBlocks = [];\n\t\tthis.currentPayloadBlock = undefined;\n\t\tthis.currentPayloadBlockLength = 0;\n\t\tthis.expectedPayloadLength = undefined;\n\t\tthis.payloadLength = 0;\n\t\tthrow new FrameError(message);\n\t}\n}\n","sourceCodeStart":145,"sourceCodeEnd":166,"githubUrl":"https://github.com/earendil-works/pi/blob/4af9d21d3b4d664e4a29fcabfec85171077248e3/packages/protocol/src/framing.ts#L145-L166","documentation":"A frame length header read during incremental decoding exceeds the decoder's maxFrameLength. Delivered via fail(), which resets buffer state and permanently fails the decoder; the stream cannot continue safely because the peer declared a payload beyond the agreed bound.","triggerScenarios":"Thrown at packages/protocol/src/framing.ts:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Raise maxFrameLength on both peers or reduce the message size."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4af9d21d3b4d664e4a29fcabfec85171077248e3","analyzedAt":"2026-08-24T13:07:14.692Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}