earendil-works/pi · error · CborError
CBOR tags are not supported
Error message
CBOR tags are not supported
What it means
Error "CBOR tags are not supported" thrown in earendil-works/pi.
Source
Thrown at packages/protocol/src/cbor/decoder.ts:80
const length = this.readLength(additionalInformation, "map", this.options.maxContainerLength);
const result: Record<string, unknown> = {};
const keys = new Set<string>();
for (let index = 0; index < length; index++) {
const key = this.readItem(depth + 1);
if (typeof key !== "string") throw new CborError("CBOR map keys must be strings");
if (keys.has(key)) throw new CborError("CBOR map contains a duplicate key");
keys.add(key);
Object.defineProperty(result, key, {
configurable: true,
enumerable: true,
value: this.readItem(depth + 1),
writable: true,
});
}
return result;
}
case 6:
throw new CborError("CBOR tags are not supported");
case 7:
return this.readSimple(additionalInformation);
default:
throw new CborError("Malformed CBOR major type");
}
}
private readSimple(additionalInformation: number): unknown {
switch (additionalInformation) {
case 20:
return false;
case 21:
return true;
case 22:
return null;
case 27: {
const bytes = this.readBytes(8);
const value = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getFloat64(0, false);View on GitHub (pinned to 4af9d21d3b)
Solutions
- Do not use CBOR tags in payloads; this decoder does not support them. Encode values without tag wrappers.
When it happens
Trigger: Thrown at packages/protocol/src/cbor/decoder.ts:80 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24).
Data as JSON: /api/errors/6677f5e2535f82bf.
Report an issue: GitHub.