Go errors
High-intent troubleshooting for parsing and validation errors in Go. Use the exact error message and fix the first real issue.
Compact root: this runtime page shows up to 120 items per block. Use paged errors for the full list.
Jump to section
Top tools (local-only)
- JSON Validator
- JSON Repair
- YAML Validator
- CSV Validator
- XML to JSON
- Base64 Encode/Decode
- URL Encode/Decode
- JWT Decoder
JSON parse / deserialize errors
Most issues are not “bad JSON” but wrong content (HTML), truncation, extra characters, invalid escapes, or encoding.
- invalid character '0' in string escape code
- invalid character '1' in string escape code
- invalid character '2' in string escape code
- invalid character '3' in string escape code
- invalid character '4' in string escape code
- invalid character '5' in string escape code
- invalid character '<' looking for beginning of value
- invalid character ']' after top-level value
- invalid character 'b' in string escape code
- invalid character 'f' in string escape code
- invalid character 'n' in string escape code
- invalid character 'o' looking for beginning of value
- invalid character 'r' in string escape code
- invalid character 't' in string escape code
- invalid character 'u' in string escape code
- invalid character 'u' looking for beginning of value
- invalid character 'x' in string escape code
- invalid character '}' after top-level value
- json: cannot unmarshal array into Go struct field Item.price of type bool
- json: cannot unmarshal array into Go struct field Item.price of type float64
- json: cannot unmarshal array into Go struct field Item.price of type int
- json: cannot unmarshal array into Go struct field Item.price of type int64
- json: cannot unmarshal array into Go struct field Item.price of type string
- json: cannot unmarshal array into Go struct field Item.price of type time.Time
- json: cannot unmarshal array into Go struct field Meta.count of type bool
- json: cannot unmarshal array into Go struct field Meta.count of type float64
- json: cannot unmarshal array into Go struct field Meta.count of type int
- json: cannot unmarshal array into Go struct field Meta.count of type int64
- json: cannot unmarshal array into Go struct field Meta.count of type string
- json: cannot unmarshal array into Go struct field Meta.count of type time.Time
- json: cannot unmarshal array into Go struct field Payload.items of type bool
- json: cannot unmarshal array into Go struct field Payload.items of type float64
- json: cannot unmarshal array into Go struct field Payload.items of type int
- json: cannot unmarshal array into Go struct field Payload.items of type int64
- json: cannot unmarshal array into Go struct field Payload.items of type string
- json: cannot unmarshal array into Go struct field Payload.items of type time.Time
- json: cannot unmarshal array into Go struct field Payload.user of type bool
- json: cannot unmarshal array into Go struct field Payload.user of type float64
- json: cannot unmarshal array into Go struct field Payload.user of type int
- json: cannot unmarshal array into Go struct field Payload.user of type int64
- json: cannot unmarshal array into Go struct field Payload.user of type string
- json: cannot unmarshal array into Go struct field Payload.user of type time.Time
- json: cannot unmarshal array into Go struct field Token of type bool
- json: cannot unmarshal array into Go struct field Token of type float64
- json: cannot unmarshal array into Go struct field Token of type int
- json: cannot unmarshal array into Go struct field Token of type int64
- json: cannot unmarshal array into Go struct field Token of type string
- json: cannot unmarshal array into Go struct field Token of type time.Time
- json: cannot unmarshal array into Go struct field User.createdAt of type bool
- json: cannot unmarshal array into Go struct field User.createdAt of type float64
- json: cannot unmarshal array into Go struct field User.createdAt of type int
- json: cannot unmarshal array into Go struct field User.createdAt of type int64
- json: cannot unmarshal array into Go struct field User.createdAt of type string
- json: cannot unmarshal array into Go struct field User.createdAt of type time.Time
- json: cannot unmarshal array into Go struct field User.email of type bool
- json: cannot unmarshal array into Go struct field User.email of type float64
- json: cannot unmarshal array into Go struct field User.email of type int
- json: cannot unmarshal array into Go struct field User.email of type int64
- json: cannot unmarshal array into Go struct field User.email of type string
- json: cannot unmarshal array into Go struct field User.email of type time.Time
- json: cannot unmarshal array into Go struct field User.id of type bool
- json: cannot unmarshal array into Go struct field User.id of type float64
- json: cannot unmarshal array into Go struct field User.id of type int
- json: cannot unmarshal array into Go struct field User.id of type int64
- json: cannot unmarshal array into Go struct field User.id of type string
- json: cannot unmarshal array into Go struct field User.id of type time.Time
- json: cannot unmarshal array into Go value of type []float64
- json: cannot unmarshal array into Go value of type []int
- json: cannot unmarshal array into Go value of type []map[string]interface{}
- json: cannot unmarshal array into Go value of type []string
- json: cannot unmarshal array into Go value of type bool
- json: cannot unmarshal array into Go value of type int64
- json: cannot unmarshal array into Go value of type map[string]string
- json: cannot unmarshal array into Go value of type time.Time
- json: cannot unmarshal bool into Go struct field Item.price of type bool
- json: cannot unmarshal bool into Go struct field Item.price of type float64
- json: cannot unmarshal bool into Go struct field Item.price of type int
- json: cannot unmarshal bool into Go struct field Item.price of type int64
- json: cannot unmarshal bool into Go struct field Item.price of type string
- json: cannot unmarshal bool into Go struct field Item.price of type time.Time
- json: cannot unmarshal bool into Go struct field Meta.count of type bool
- json: cannot unmarshal bool into Go struct field Meta.count of type float64
- json: cannot unmarshal bool into Go struct field Meta.count of type int
- json: cannot unmarshal bool into Go struct field Meta.count of type int64
- json: cannot unmarshal bool into Go struct field Meta.count of type string
- json: cannot unmarshal bool into Go struct field Meta.count of type time.Time
- json: cannot unmarshal bool into Go struct field Payload.items of type bool
- json: cannot unmarshal bool into Go struct field Payload.items of type float64
- json: cannot unmarshal bool into Go struct field Payload.items of type int
- json: cannot unmarshal bool into Go struct field Payload.items of type int64
- json: cannot unmarshal bool into Go struct field Payload.items of type string
- json: cannot unmarshal bool into Go struct field Payload.items of type time.Time
- json: cannot unmarshal bool into Go struct field Payload.user of type bool
- json: cannot unmarshal bool into Go struct field Payload.user of type float64
- json: cannot unmarshal bool into Go struct field Payload.user of type int
- json: cannot unmarshal bool into Go struct field Payload.user of type int64
- json: cannot unmarshal bool into Go struct field Payload.user of type string
- json: cannot unmarshal bool into Go struct field Payload.user of type time.Time
- json: cannot unmarshal bool into Go struct field Token of type bool
- json: cannot unmarshal bool into Go struct field Token of type float64
- json: cannot unmarshal bool into Go struct field Token of type int
- json: cannot unmarshal bool into Go struct field Token of type int64
- json: cannot unmarshal bool into Go struct field Token of type string
- json: cannot unmarshal bool into Go struct field Token of type time.Time
- json: cannot unmarshal bool into Go struct field User.createdAt of type bool
- json: cannot unmarshal bool into Go struct field User.createdAt of type float64
- json: cannot unmarshal bool into Go struct field User.createdAt of type int
- json: cannot unmarshal bool into Go struct field User.createdAt of type int64
- json: cannot unmarshal bool into Go struct field User.createdAt of type string
- json: cannot unmarshal bool into Go struct field User.createdAt of type time.Time
- json: cannot unmarshal bool into Go struct field User.email of type bool
- json: cannot unmarshal bool into Go struct field User.email of type float64
- json: cannot unmarshal bool into Go struct field User.email of type int
- json: cannot unmarshal bool into Go struct field User.email of type int64
- json: cannot unmarshal bool into Go struct field User.email of type string
- json: cannot unmarshal bool into Go struct field User.email of type time.Time
- json: cannot unmarshal bool into Go struct field User.id of type bool
- json: cannot unmarshal bool into Go struct field User.id of type float64
- json: cannot unmarshal bool into Go struct field User.id of type int
- json: cannot unmarshal bool into Go struct field User.id of type int64
YAML parse errors
YAML is indentation-sensitive. Fix the first reported line/column, then validate again before converting.
- error converting YAML to JSON: yaml: line 2: did not find expected key
- error converting YAML to JSON: yaml: line 2: found character that cannot start any token
- error converting YAML to JSON: yaml: line 2: mapping values are not allowed in this context
- yaml: line 2: did not find expected '-' indicator
- yaml: line 2: did not find expected key
- yaml: line 2: found character that cannot start any token
- yaml: line 2: mapping values are not allowed in this context
CSV parser errors
CSV issues are usually delimiter + quoting rules. Find the first broken row and fix it.
- bare " in non-quoted-field
- extraneous or missing " in quoted-field
- record on line 2: wrong number of fields
- wrong number of fields
XML parsing errors
XML is strict: a single invalid character or unescaped ampersand can break parsing. Fix the first error and re-validate.
Encoding / token errors (Base64, URL, JWT)
Encoded strings may contain secrets. Decode locally and normalize Base64URL/percent-encoding safely.
- illegal base64 data at input char
- illegal base64 data at input char (RawURLEncoding)
- jwt: signature is invalid
- jwt: token contains an invalid number of segments
- jwt: token is expired
- net/url: invalid URL escape
Related hubs
FAQ (quick)
Start here: Errors hub (runs locally, no upload).
Can I fix Go errors without uploading my data? Yes. no-upload.ru tools run locally in your browser (NO UPLOAD). Start with Errors hub and keep samples redacted if you must share them.
What is the fastest safe workflow? Validate first, fix the smallest broken part, then validate again before converting/exporting. This prevents silent downstream issues.
Why does Go errors happen? Most issues come from copy/paste truncation, wrong encoding, non-strict syntax (comments/trailing commas), or a shape mismatch (array vs object).
Which tool should I start with for Go errors? Start with Errors hub. If you still see errors, follow the related playbook/trend report on this page.