{"id":"ae99bf7d5ebb5cef","repo":"go-redis/redis","slug":"redis-can-t-parse-int-reply-100q","errorCode":null,"errorMessage":"redis: can't parse int reply: %.100q","messagePattern":"redis: can't parse int reply: %\\.100q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/proto/reader.go","lineNumber":516,"sourceCode":"\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\n\t\t}\n\t\treturn util.ParseUint([]byte(s), 10, 64)\n\tcase RespBigInt:\n\t\tb, err := r.readBigInt(line)","sourceCodeStart":498,"sourceCodeEnd":534,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/internal/proto/reader.go#L498-L534","documentation":"Error \"redis: can't parse int reply: %.100q\" thrown in go-redis/redis.","triggerScenarios":"Thrown at internal/proto/reader.go:516 when the library encounters an invalid state.","commonSituations":"Treat integer parse failures as fatal for the connection.","solutions":["Check the truncated reply text in the error; the int field is malformed","Reconnect if the stream is desynchronized"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}