[error] 1415#1415: *47 lua entry thread aborted: runtime error: lualib/resty/redis.lua:335: bad request stack traceback: coroutine 0: [C]: in function 'send' lualib/resty/redis.lua:335: in function 'get'
我也遇到这个问题, 原因好像是 redis 的tcp sock 不能跨 请求 分享(If you try to share the thread or cosocket objects across the boundary of the creating request, then you will get the "no co ctx found" error (for threads) or "bad request" (for cosockets). )
楼上说得对,tcp sock 是不能跨请求共享的
要怎么处理呢