chao6118 opened a new issue, #12869: URL: https://github.com/apache/apisix/issues/12869
### Current Behavior 我使用了三个组件 serverless-pre-function grpc-transcode 和 serverless-post-function pre是处理参数,grpc是处理grpc转换数据 post是处理grpc返回的结果数据-这里会用到redis了对结果进行处理,但是异常了 [error] 228#228: *130952858 failed to run body_filter_by_lua*: /usr/local/apisix/apisix/patch.lua:372: API disabled in the context of body_filter_by_lua* stack traceback: [C]: in function 'error' /usr/local/openresty/lualib/resty/core/socket/tcp.lua:292: in function 'original_tcp' /usr/local/apisix/apisix/patch.lua:372: in function 'tcp' /usr/local/openresty/lualib/resty/redis.lua:86: in function 'new' [string "-- post-function.lua..."]:21: in function 'get_connection' [string "-- post-function.lua..."]:48: in function 'execute' [string "-- post-function.lua..."]:227: in function 'process_fields_with_jedis' [string "-- post-function.lua..."]:362: in function 'func' /usr/local/apisix/apisix/plugins/serverless/init.lua:84: in function 'phase_func' /usr/local/apisix/apisix/plugin.lua:1232: in function 'common_phase' /usr/local/apisix/apisix/init.lua:907: in function 'http_body_filter_phase' body_filter_by_lua(nginx.conf:408):2: in main chunk while sending to client, client: 10.17.7.5 10.17.7.5 - - [07/Jan/2026:14:54:47 +0000] 192.168.114.214:9080 "POST /zeebe/create-process-instance/Process_0lpgwbg HTTP/1.1" 200 0 0.080 "-" "Apifox/1.0.0 (https://apifox.com)" 192.168.114.214:26500 200 0.076 "grpc://192.168.114.214:9080" 应该怎么处理呢? ### Expected Behavior _No response_ ### Error Logs _No response_ ### Steps to Reproduce 使用三个组件 serverless-post-function不能使用redis类库 ### Environment - APISIX version (run `apisix version`): docker最新版本 - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
