{"record":{"id":"334f1a5999187918","repo":"antonmedv/fx","slug":"unsupported-value-type-v","errorCode":null,"errorMessage":"Unsupported value type: %v","messagePattern":"Unsupported value type: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/engine/stringify.go","lineNumber":112,"sourceCode":"\t\tvar out strings.Builder\n\t\tout.WriteString(\"[\")\n\t\tout.WriteString(\"\\n\")\n\n\t\tfor i, key := range keys {\n\t\t\titem := arr.Get(key)\n\t\t\tout.WriteString(strings.Repeat(\"  \", depth+1))\n\t\t\tout.WriteString(Stringify(item, vm, depth+1))\n\t\t\tif i < len(keys)-1 {\n\t\t\t\tout.WriteString(\",\")\n\t\t\t}\n\t\t\tout.WriteString(\"\\n\")\n\t\t}\n\n\t\tout.WriteString(strings.Repeat(\"  \", depth))\n\t\tout.WriteString(\"]\")\n\t\treturn out.String()\n\t}\n\tpanic(fmt.Sprintf(\"Unsupported value type: %v\", rtype.Kind()))\n}\n","sourceCodeStart":94,"sourceCodeEnd":114,"githubUrl":"https://github.com/antonmedv/fx/blob/4f31cd3a0c5d66f1b4290a2719bab14a5cee8ebe/internal/engine/stringify.go#L94-L114","documentation":"Terminal panic in Stringify: the goja value's reflected kind is none of the supported types (object/array/etc.), so no JSON rendering branch applies. In practice it fires for exotic or uninitialized reflected values reaching the printer, indicating an unsupported value rather than malformed user JSON.","triggerScenarios":"Thrown at internal/engine/stringify.go:112 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid piping values of the unsupported type into Stringify","Convert the value to a plain object/array/string before printing","Extend Stringify with a branch for the reported reflect.Kind"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4f31cd3a0c5d66f1b4290a2719bab14a5cee8ebe","analyzedAt":"2026-09-02T02:17:47.344Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}