Short answer: A byte 0x... literal has an odd number of hex digits. Each byte needs two.
1 error: 2:5: byte encoding/hex: odd length hex string
Source: POST /v2/teal/compile, HTTP 400, captured against a public TestNet node on 2026-12-03.
Captured with byte 0xABC (three digits). The message includes line and column.
0x0ABC.Wording can change between node versions. All API errors · errors.json · transaction errors · SDK errors · costs