{"id":"51f90e919307c54e","repo":"go-redis/redis","slug":"redis-can-t-parse-verbatim-string-reply-q","errorCode":null,"errorMessage":"redis: can't parse verbatim string reply: %q","messagePattern":"redis: can't parse verbatim string reply: %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/proto/reader.go","lineNumber":421,"sourceCode":"\t\treturn \"\", err\n\t}\n\n\tb := make([]byte, n+2)\n\t_, err = io.ReadFull(r.rd, b)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn util.BytesToString(b[:n]), nil\n}\n\nfunc (r *Reader) readVerb(line []byte) (string, error) {\n\ts, err := r.readStringReply(line)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif len(s) < 4 || s[3] != ':' {\n\t\treturn \"\", fmt.Errorf(\"redis: can't parse verbatim string reply: %q\", line)\n\t}\n\treturn s[4:], nil\n}\n\nfunc (r *Reader) readSlice(line []byte) ([]interface{}, error) {\n\tn, err := replyLen(line)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tval := make([]interface{}, n)\n\tfor i := 0; i < len(val); i++ {\n\t\tv, err := r.ReadReply()\n\t\tif err != nil {\n\t\t\tif err == Nil {\n\t\t\t\tval[i] = nil\n\t\t\t\tcontinue\n\t\t\t}","sourceCodeStart":403,"sourceCodeEnd":439,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/internal/proto/reader.go#L403-L439","documentation":"Error \"redis: can't parse verbatim string reply: %q\" thrown in go-redis/redis.","triggerScenarios":"Thrown at internal/proto/reader.go:421 when the library encounters an invalid state.","commonSituations":"Strictly validate the verbatim format field and drop the conn on unknown formats.","solutions":["Check the quoted verbatim string; the format prefix may be unsupported","Reconnect to resynchronize the stream"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}