{"record":{"id":"fd634c184f3aa7b3","repo":"mikefarah/yq","slug":"unsupported-type-v","errorCode":null,"errorMessage":"unsupported type %v","messagePattern":"unsupported type (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/yqlib/decoder_toml.go","lineNumber":242,"sourceCode":"\nfunc (dec *tomlDecoder) decodeNode(tomlNode *toml.Node) (*CandidateNode, error) {\n\tswitch tomlNode.Kind {\n\tcase toml.Key, toml.String:\n\t\treturn dec.createStringScalar(tomlNode)\n\tcase toml.Bool:\n\t\treturn dec.createBoolScalar(tomlNode)\n\tcase toml.Integer:\n\t\treturn dec.createIntegerScalar(tomlNode)\n\tcase toml.DateTime:\n\t\treturn dec.createDateTimeScalar(tomlNode)\n\tcase toml.Float:\n\t\treturn dec.createFloatScalar(tomlNode)\n\tcase toml.Array:\n\t\treturn dec.createArray(tomlNode)\n\tcase toml.InlineTable:\n\t\treturn dec.createInlineTableMap(tomlNode)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unsupported type %v\", tomlNode.Kind)\n\t}\n\n}\n\nfunc (dec *tomlDecoder) Decode() (*CandidateNode, error) {\n\tif dec.finished {\n\t\treturn nil, io.EOF\n\t}\n\t//\n\t// toml library likes to panic\n\tvar deferredError error\n\tdefer func() { //catch or finally\n\t\tif r := recover(); r != nil {\n\t\t\tvar ok bool\n\t\t\tdeferredError, ok = r.(error)\n\t\t\tif !ok {\n\t\t\t\tdeferredError = fmt.Errorf(\"pkg: %v\", r)\n\t\t\t}","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/mikefarah/yq/blob/8b5af0694bb82b41d4ae180fac9972029066f90a/pkg/yqlib/decoder_toml.go#L224-L260","documentation":"decodeNode's switch hit default: the TOML AST node has a Kind the decoder has no handler for (it covers Key, String, Bool, Integer, DateTime, Float, Array, InlineTable). This indicates a construct the yq TOML decoder has not implemented — effectively unsupported TOML syntax rather than malformed input.","triggerScenarios":"Thrown at pkg/yqlib/decoder_toml.go:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Identify the construct via the %v kind in the message and restructure it into a supported form (scalars, arrays, inline tables)","Upgrade yq — newer releases may support the node kind","As a workaround, convert the TOML to YAML/JSON externally before processing"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b5af0694bb82b41d4ae180fac9972029066f90a","analyzedAt":"2026-09-05T10:57:22.766Z","contentChangedAt":"2026-09-05T10:57:22.766Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}