{"record":{"id":"32ceb75880414acd","repo":"diegosouzapw/OmniRoute","slug":"unsupported-wire-type-wiretype","errorCode":null,"errorMessage":"Unsupported wire type: ${wireType}","messagePattern":"Unsupported wire type: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/muse-spark-web.ts","lineNumber":694,"sourceCode":"    if (wireType === 0) {\n      const [value, n] = decodeVarint(data, offset);\n      offset = n;\n      fields.push({ number, wireType, value });\n    } else if (wireType === 1) {\n      const view = new DataView(data.buffer, data.byteOffset + offset, 8);\n      fields.push({ number, wireType, value: view.getBigUint64(0, true) });\n      offset += 8;\n    } else if (wireType === 2) {\n      const [len, n] = decodeVarint(data, offset);\n      offset = n;\n      fields.push({ number, wireType, value: data.slice(offset, offset + len) });\n      offset += len;\n    } else if (wireType === 5) {\n      const view = new DataView(data.buffer, data.byteOffset + offset, 4);\n      fields.push({ number, wireType, value: view.getUint32(0, true) });\n      offset += 4;\n    } else {\n      throw new Error(`Unsupported wire type: ${wireType}`);\n    }\n  }\n  return fields;\n}\n\nfunction serializeProtoFields(fields: ProtoField[]): Uint8Array {\n  const parts: Uint8Array[] = [];\n  for (const f of fields) {\n    const tag = (f.number << 3) | f.wireType;\n    parts.push(encodeVarint(tag));\n    if (f.wireType === 0) {\n      parts.push(encodeVarint(Number(f.value)));\n    } else if (f.wireType === 1) {\n      const buf = new Uint8Array(8);\n      if (f.value instanceof Uint8Array) {\n        throw new Error(\n          `serializeProtoFields: wire type 1 field ${f.number} has non-numeric value`\n        );","sourceCodeStart":676,"sourceCodeEnd":712,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/muse-spark-web.ts#L676-L712","documentation":"parseProtoFields encountered a protobuf wire type other than 0 (varint), 1 (64-bit), 2 (length-delimited) or 5 (32-bit) — i.e. wire types 3/4 (deprecated groups) or 6/7, which this minimal MuseSpark parser does not implement. The upstream frame uses a field encoding the parser cannot walk past.","triggerScenarios":"Thrown at open-sse/executors/muse-spark-web.ts:694 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add support for the missing wire type if upstream now emits groups","Skip unknown fields safely instead of failing the whole parse when the spec allows it","Log the wire type and field number to detect protocol drift"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}