{"id":"170e6b04c6a28dd1","repo":"go-redis/redis","slug":"bigint-s-value-out-of-range","errorCode":null,"errorMessage":"bigInt(%s) value out of range","messagePattern":"bigInt\\((.+?)\\) value out of range","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/proto/reader.go","lineNumber":512,"sourceCode":"\tif err != nil {\n\t\treturn 0, err\n\t}\n\tswitch line[0] {\n\tcase RespInt, RespStatus:\n\t\treturn util.ParseInt(line[1:], 10, 64)\n\tcase RespString:\n\t\ts, err := r.readStringReply(line)\n\t\tif err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\treturn util.ParseInt([]byte(s), 10, 64)\n\tcase RespBigInt:\n\t\tb, err := r.readBigInt(line)\n\t\tif err != nil {\n\t\t\treturn 0, err\n\t\t}\n\t\tif !b.IsInt64() {\n\t\t\treturn 0, fmt.Errorf(\"bigInt(%s) value out of range\", b.String())\n\t\t}\n\t\treturn b.Int64(), nil\n\t}\n\treturn 0, fmt.Errorf(\"redis: can't parse int reply: %.100q\", line)\n}\n\nfunc (r *Reader) ReadUint() (uint64, error) {\n\tline, err := r.ReadLine()\n\tif err != nil {\n\t\treturn 0, err\n\t}\n\tswitch line[0] {\n\tcase RespInt, RespStatus:\n\t\treturn util.ParseUint(line[1:], 10, 64)\n\tcase RespString:\n\t\ts, err := r.readStringReply(line)\n\t\tif err != nil {\n\t\t\treturn 0, err","sourceCodeStart":494,"sourceCodeEnd":530,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/internal/proto/reader.go#L494-L530","documentation":"Error \"bigInt(%s) value out of range\" thrown in go-redis/redis.","triggerScenarios":"Thrown at internal/proto/reader.go:512 when the library encounters an invalid state.","commonSituations":"Range-check big integers before fitting them into fixed-width types.","solutions":["Use big.Int or string handling for integers exceeding int64 range","Validate numeric ranges before converting"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}