BansheeLW commented on issue #7633:
URL: https://github.com/apache/apisix/issues/7633#issuecomment-1210257177

   > Can you set the log to `info` level and then provide more logs?
   
   Of course, this is the log I intercepted and reproduced in the test 
environment, I hope it can help to troubleshoot the problem
   
   ------------------------------------------------------------------
   
   2022/08/10 14:56:06 [info] 44#44: *7623779 [lua] init.lua:378: 
http_access_phase(): matched route: 
{"value":{"service_id":"420121832574681939","name":"go-appserver","create_time":1656905377,"update_time":1659947369,"priority":0,"uris":["\/goapp\/gappserv\/*","\/goapp\/apiserver\/*"],"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"status":1,"id":"415027685446648601","desc":"go-appserver","plugins":{"prometheus":{"prefer_name":false,"disable":true},"kafka-logger":{"include_req_body":false,"include_resp_body":false,"inactive_timeout":5,"timeout":3,"name":"kafka
 
logger","meta_format":"default","producer_type":"async","batch_max_size":1,"required_acks":1,"cluster_name":1,"kafka_topic":"apisix-logs","disable":true,"retry_delay":1,"buffer_duration":60,"max_retry_count":0,"broker_list":{"xxx":9092,"xxxxxx":9092}},"api-breaker":{"break_response_code":502,"max_breaker_sec":300,"healthy":{"http_statuses":[200],"successes":3},"disable":true,"unhealthy":{"fa
 
ilures":3,"http_statuses":[500,503]}},"limit-req":{"rejected_code":503,"rejected_msg":"server
 is 
reject","allow_degradation":false,"disable":true,"nodelay":false,"key":"server_addr","burst":50,"key_type":"var","rate":200}}},"modifiedIndex":3453,"clean_handlers":{},"key":"\/apisix\/routes\/415027685446648601","has_domain":false,"createdIndex":250,"update_count":0,"orig_modifiedIndex":3453},
 client: 172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [warn] 44#44: *7623779 [lua] json.lua:94: failed to 
encode: Cannot serialise table: excessively sparse array force: true, client: 
172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [warn] 44#44: *7623779 [lua] json.lua:94: failed to 
encode: Cannot serialise table: excessively sparse array force: true, client: 
172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [info] 44#44: *7623779 [lua] plugin.lua:480: 
merge_service_route(): service conf: , client: 172.31.35.155, server: _, 
request: "GET /goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [info] 44#44: *7623779 [lua] plugin.lua:481: 
merge_service_route():   route conf: 
{"value":{"service_id":"420121832574681939","name":"go-appserver","create_time":1656905377,"update_time":1659947369,"priority":0,"uris":["\/goapp\/gappserv\/*","\/goapp\/apiserver\/*"],"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"status":1,"id":"415027685446648601","desc":"go-appserver","plugins":{"prometheus":{"prefer_name":false,"disable":true},"kafka-logger":{"include_req_body":false,"include_resp_body":false,"inactive_timeout":5,"timeout":3,"name":"kafka
 
logger","meta_format":"default","producer_type":"async","batch_max_size":1,"required_acks":1,"cluster_name":1,"kafka_topic":"apisix-logs","disable":true,"retry_delay":1,"buffer_duration":60,"max_retry_count":0,"broker_list":{"xxx":9092,"xxxxxx":9092}},"api-breaker":{"break_response_code":502,"max_breaker_sec":300,"healthy":{"http_statuses":[200],"successes":3},"disable":true,"unhealthy":{
 
"failures":3,"http_statuses":[500,503]}},"limit-req":{"rejected_code":503,"rejected_msg":"server
 is 
reject","allow_degradation":false,"disable":true,"nodelay":false,"key":"server_addr","burst":50,"key_type":"var","rate":200}}},"modifiedIndex":3453,"clean_handlers":{},"key":"\/apisix\/routes\/415027685446648601","has_domain":false,"createdIndex":250,"update_count":0,"orig_modifiedIndex":3453},
 client: 172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [warn] 44#44: *7623779 [lua] json.lua:94: failed to 
encode: Cannot serialise table: excessively sparse array force: true, client: 
172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [warn] 44#44: *7623779 [lua] json.lua:94: failed to 
encode: Cannot serialise table: excessively sparse array force: true, client: 
172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [info] 44#44: *7623779 [lua] upstream.lua:274: 
set_upstream(): discover new upstream from test2/go-appserver:http, type 
kubernetes: , client: 172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"
   2022/08/10 14:56:06 [error] 44#44: *7623779 lua entry thread aborted: 
runtime error: /usr/local/apisix/apisix/core/config_util.lua:71: attempt to 
call local 'f' (a nil value)
   stack traceback:
   --
           access_by_lua(nginx.conf:256):2: in main chunk, client: 
172.31.35.155, server: _, request: "GET 
/goapp/gappserv/configure/quickChatList?__la=zh HTTP/1.1", host: 
"cloudac4.mildom.jp"


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

Reply via email to