lua-resty-redis icon indicating copy to clipboard operation
lua-resty-redis copied to clipboard

when i pull the latest lua-restry-redis connet redis error

Open bruse-peng opened this issue 4 years ago • 2 comments

when i pull the latest lua-restry-redis connet redis error below

below is on part my lua local redis = require "resty.redis" local red = redis:new() red:set_timeout(50000) -- 1 sec local ok, err = red:connect(ip, port) --ngx.say(err) if not ok then ngx.log(ngx.ERR, "connect redis fail") return end

blow is the nginx error log: 2020/03/10 18:39:58 [error] 5960#0: *3533647 [lua] forbid.lua:13: connect redis fail, client: 10.5.24.183, server: nginx-test.myscrm.cn, request: "GET / HTTP/1.1", host: "nginx-test.xxxx.cn"

bruse-peng avatar Mar 10 '20 10:03 bruse-peng

when i download v0.27 it is all right

bruse-peng avatar Mar 10 '20 10:03 bruse-peng

when i download v0.27 it is all right

Hello, could you reproduct your problems again, and print the err? There should be more detail in the err.

rainingmaster avatar Apr 03 '20 13:04 rainingmaster