{"record":{"id":"00ebcc76e80e3d3d","repo":"gravitational/teleport","slug":"unsupported-json-type-t","errorCode":null,"errorMessage":"unsupported json type %T","messagePattern":"unsupported json type %T","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"api/types/struct.go","lineNumber":146,"sourceCode":"\t\t}\n\n\t\treturn &gogotypes.Value{Kind: &gogotypes.Value_StructValue{StructValue: s}}, nil\n\tcase []any:\n\t\tvals := make([]*gogotypes.Value, len(t))\n\t\tfor i, item := range t {\n\t\t\tval, err := anyToGogoValue(item)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\n\t\t\tvals[i] = val\n\t\t}\n\n\t\treturn &gogotypes.Value{Kind: &gogotypes.Value_ListValue{\n\t\t\tListValue: &gogotypes.ListValue{Values: vals},\n\t\t}}, nil\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unsupported json type %T\", v)\n\t}\n}\n","sourceCodeStart":128,"sourceCodeEnd":149,"githubUrl":"https://github.com/gravitational/teleport/blob/1283425b60ec5f60d509ba4c791183d452923ff7/api/types/struct.go#L128-L149","documentation":"Type-switch default in anyToGogoValue: the value being converted into a protobuf Struct Value is not one of the supported JSON types (nil, bool, float64, string, map[string]any, []any), so it cannot be represented in a gogotypes.Value.","triggerScenarios":"Thrown at api/types/struct.go:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the input struct only contains JSON-serializable types (as produced by encoding/json)","Avoid feeding values like int, int64, or arbitrary Go structs; marshal/unmarshal through JSON first to normalize them"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1283425b60ec5f60d509ba4c791183d452923ff7","analyzedAt":"2026-09-02T04:06:41.601Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}