doujiang24 / lua-resty-kafka

Lua kafka client driver for the Openresty based on the cosocket API
BSD 3-Clause "New" or "Revised" License
801 stars 274 forks source link

请问大佬这个是什么原因呢? #145

Open ZYL19960322 opened 1 year ago

ZYL19960322 commented 1 year ago

2022/11/28 13:52:07 [error] 2284#0: *37000 lua entry thread aborted: runtime error: /usr/hello/lualib/resty/kafka/response.lua:72: bad argument #1 to 'lshift' (number expected, got nil) stack traceback: coroutine 0: [C]: in function 'lshift' /usr/hello/lualib/resty/kafka/response.lua:72: in function 'int32' /usr/hello/lualib/resty/kafka/client.lua:80: in function 'metadata_decode' /usr/hello/lualib/resty/kafka/client.lua:187: in function '_fetch_metadata' /usr/hello/lualib/resty/kafka/client.lua:265: in function 'fetch_metadata' /usr/hello/lualib/resty/kafka/producer.lua:123: in function 'choosepartition' /usr/hello/lualib/resty/kafka/producer.lua:378: in function 'send' /usr/hello/lua/product.lua:27: in main chunk, client: 192.168.31.77, server: , request: "GET /product?productId=3&shopId=14 HTTP/1.1", host: "192.168.31.142"

hongliang5316 commented 1 year ago

@ZYL19960322 看起来是协议问题, 试试调整下这个参数呢

image