{"record":{"id":"395c5f801772bedd","repo":"VictoriaMetrics/VictoriaMetrics","slug":"cannot-read-intvalue-395c5f","errorCode":null,"errorMessage":"cannot read IntValue","messagePattern":"cannot read IntValue","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/protoparser/opentelemetry/pb/pb_json.go","lineNumber":87,"sourceCode":"\t\t\tstringValue, ok := fc.String()\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"cannot read StringValue\")\n\t\t\t}\n\t\t\treturn a.NewString(stringValue), nil\n\t\tcase 2:\n\t\t\tboolValue, ok := fc.Bool()\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"cannot read BoolValue\")\n\t\t\t}\n\t\t\tif boolValue {\n\t\t\t\treturn a.NewTrue(), nil\n\t\t\t} else {\n\t\t\t\treturn a.NewFalse(), nil\n\t\t\t}\n\t\tcase 3:\n\t\t\tintValue, ok := fc.Int64()\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"cannot read IntValue\")\n\t\t\t}\n\t\t\tif intValue >= math.MinInt && intValue <= math.MaxInt {\n\t\t\t\treturn a.NewNumberInt(int(intValue)), nil\n\t\t\t}\n\t\t\treturn a.NewNumberFloat64(float64(intValue)), nil\n\t\tcase 4:\n\t\t\tdoubleValue, ok := fc.Double()\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"cannot read DoubleValue\")\n\t\t\t}\n\t\t\treturn a.NewNumberFloat64(doubleValue), nil\n\t\tcase 5:\n\t\t\tdata, ok := fc.MessageData()\n\t\t\tif !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"cannot read ArrayValue\")\n\t\t\t}\n\t\t\tarr, err := decodeArrayValueToJSON(data, a, fb)\n\t\t\tif err != nil {","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/VictoriaMetrics/VictoriaMetrics/blob/5079fb58f1e8e62113f90c945ad71586c797d770/lib/protoparser/opentelemetry/pb/pb_json.go#L69-L105","documentation":"Thrown in decodeAnyValueToJSON when field number 3 (int value, int64) cannot be decoded from the wire by easyproto's fc.Int64(), indicating a malformed AnyValue int payload. This aborts decoding of the enclosing KeyValue/ArrayValue and the entire OTLP request.","triggerScenarios":"Thrown at lib/protoparser/opentelemetry/pb/pb_json.go:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the exporter client encodes int64 AnyValue fields as proper varints","Upgrade the client's protobuf runtime if it emits corrupt wire data","Inspect raw payload bytes to locate the malformed field","Return InvalidArgument to the sender so it can fix its serialization"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5079fb58f1e8e62113f90c945ad71586c797d770","analyzedAt":"2026-09-03T18:10:26.153Z","contentChangedAt":"2026-09-03T18:10:26.153Z","schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}