{"id":"299c7a50ab2b6676","repo":"go-redis/redis","slug":"redis-can-t-parse-100q","errorCode":null,"errorMessage":"redis: can't parse %.100q","messagePattern":"redis: can't parse %\\.100q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/proto/reader.go","lineNumber":366,"sourceCode":"\t\treturn util.ParseInt(line[1:], 10, 64)\n\tcase RespFloat:\n\t\treturn r.readFloat(line)\n\tcase RespBool:\n\t\treturn r.readBool(line)\n\tcase RespBigInt:\n\t\treturn r.readBigInt(line)\n\n\tcase RespString:\n\t\treturn r.readStringReply(line)\n\tcase RespVerbatim:\n\t\treturn r.readVerb(line)\n\n\tcase RespArray, RespSet, RespPush:\n\t\treturn r.readSlice(line)\n\tcase RespMap:\n\t\treturn r.readMap(line)\n\t}\n\treturn nil, fmt.Errorf(\"redis: can't parse %.100q\", line)\n}\n\nfunc (r *Reader) readFloat(line []byte) (float64, error) {\n\tv := util.BytesToString(line[1:])\n\tswitch v {\n\tcase \"inf\":\n\t\treturn math.Inf(1), nil\n\tcase \"-inf\":\n\t\treturn math.Inf(-1), nil\n\tcase \"nan\", \"-nan\":\n\t\treturn math.NaN(), nil\n\t}\n\treturn strconv.ParseFloat(v, 64)\n}\n\nfunc (r *Reader) readBool(line []byte) (bool, error) {\n\tswitch util.BytesToString(line[1:]) {\n\tcase \"t\":","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/internal/proto/reader.go#L348-L384","documentation":"Error \"redis: can't parse %.100q\" thrown in go-redis/redis.","triggerScenarios":"Thrown at internal/proto/reader.go:366 when the library encounters an invalid state.","commonSituations":"Gate version-specific commands with SkipBeforeRedisVersion-style checks in application code too.","solutions":["Check the truncated reply in the error to see the actual bytes","Verify server version compatibility for the command used"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}