{"record":{"id":"8448a4b100c5e6ed","repo":"windmill-labs/windmill","slug":"failed-to-parse-sse-data-parseerr","errorCode":null,"errorMessage":"Failed to parse SSE data: ${parseErr}","messagePattern":"Failed to parse SSE data: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/app/dev.ts","lineNumber":2066,"sourceCode":"                }),\n              );\n            }\n\n            // Check if job is completed\n            if (update.completed) {\n              ws.send(\n                JSON.stringify({\n                  type: \"streamJobRes\",\n                  reqId,\n                  error: false,\n                  result: update.only_result,\n                }),\n              );\n              reader.cancel();\n              return;\n            }\n          } catch (parseErr) {\n            log.warn(`Failed to parse SSE data: ${parseErr}`);\n          }\n        }\n      }\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n","sourceCodeStart":2048,"sourceCodeEnd":2075,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/app/dev.ts#L2048-L2075","documentation":"In `wmill app dev`'s job streaming: a line read from the job's SSE stream failed JSON.parse (or the event decode). Streaming continues with the next line, so at worst one job update is missed — the completed message would end the stream via reader.cancel().","triggerScenarios":"Thrown at cli/src/commands/app/dev.ts:2066 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check for proxy/encoding corruption between the backend and the CLI (unescaped HTML, truncated chunks)","Update CLI if the SSE event format is newer than it understands","Retry the run — transient partial frames usually don't recur"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}