Description
I plan to use Kafka-logger to log api request body and response body for further analysis。
I just found that api response with header content-encoding set to "gzip", body containing Chinese words, was not logged properly。when parsing such response bodies via json tools, " Invalid UTF-8 start byte 0x8b" alike errors arise。
Is there a way to resolve this problem ?
Environment
- APISIX version (run
apisix version): 2.15.3
- Operating system (run
uname -a): linux
- OpenResty / Nginx version (run
openresty -V or nginx -V):
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): 3.5.4
- APISIX Dashboard version, if relevant: 2.15.0
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Description
I plan to use Kafka-logger to log api request body and response body for further analysis。
I just found that api response with header content-encoding set to "gzip", body containing Chinese words, was not logged properly。when parsing such response bodies via json tools, " Invalid UTF-8 start byte 0x8b" alike errors arise。
Is there a way to resolve this problem ?
Environment
apisix version): 2.15.3uname -a): linuxopenresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info): 3.5.4luarocks --version):