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"
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"