- Edited
local parser = require "redis.parser"
local server, typ = parser.parse_reply(res.body)
if typ ~= parser.BULK_REPLY or not server then
ngx.log(ngx.ERR, "bad redis response: ", res.body)
ngx.exit(500)
end
parser.parse_reply 并没有成功解析redis的返回
nginx日志
2020/04/29 11:38:58 [error] 13159#0: *56 [lua] access_by_lua(nginx.conf:109):24: bad redis response: +OKM
+OKM
$6M
media2M