lakewatcher commented on issue #9527:
URL: https://github.com/apache/apisix/issues/9527#issuecomment-1661417978

   DEBUG开启后的一个示例:
   
   2023/08/02 10:31:05 [warn] 104#104: *118893 [lua] debug.lua:198: 
http_log_phase(): call require("apisix").http_log_phase() return:{} while 
logging request, client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [warn] 60#60: *120080 [lua] debug.lua:190: 
http_access_phase(): call require("apisix").http_access_phase() args:{}, 
client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [info] 60#60: *120080 [lua] init.lua:426: fun_org(): 
matched route: 
{"value":{"update_time":1690941321,"create_time":1690275764,"uri":"\/main-data\/http2dubbo\/car_createCar","labels":{"SERVICE":"main-data","API_VERSION":"1.0.0","API_GROUP":"http2dubbo"},"id":"main-data_car_createCar","status":1,"methods":["POST"],"upstream_id":"main-data-dubbo","plugins":{"dubbo-proxy":{"service_name":"com.zto56.site.web.proxy.Http2DubboService","method":"invoke","service_version":"1.0.0"}},"priority":0,"name":"main-data_car_createCar"},"orig_modifiedIndex":5183,"modifiedIndex":5183,"createdIndex":4995,"key":"\/apisix-inner\/routes\/main-data_car_createCar","clean_handlers":{},"update_count":0,"has_domain":false},
 client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [info] 60#60: *120080 [lua] init.lua:471: fun_org(): 
stash ngx ctx: 1, client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [info] 60#60: *120080 [lua] upstream.lua:597: 
get_by_id(): parsed upstream: 
{"value":{"update_time":1690940485,"original_nodes":[{"host":"10.202.18.199","port":20880,"weight":1},{"host":"10.202.68.118","port":20880,"weight":1}],"pass_host":"pass","id":"main-data-dubbo","discovery_args":{"group_name":"","namespace_id":""},"type":"roundrobin","signature":"N:main-data-dubboS:main-dataNS:G:TC:3TR:20TS:3","create_time":1690275558,"parent":{"value":"table:
 
0x7f54891924b8","modifiedIndex":5179,"key":"\/apisix-inner\/upstreams\/main-data-dubbo","clean_handlers":{},"createdIndex":4992,"has_domain":false},"nodes":[{"host":"10.202.18.199","port":20880,"priority":0,"weight":1},{"host":"10.202.68.118","port":20880,"priority":0,"weight":1}],"timeout":{"connect":3,"send":3,"read":20},"scheme":"http","hash_on":"vars","discovery_type":"nacos","service_name":"main-data","nodes_ref":"table:
 
0x7f5488a570e0","name":"main-data-dubbo"},"modifiedIndex":5179,"key":"\/apisix-inner\/upst
 reams\/main-data-dubbo","clean_handlers":"table: 
0x7f5486e58388","createdIndex":4992,"has_domain":false}, client: 10.202.17.34, 
server: _, request: "POST /main-data/http2dubbo/car_createCar HTTP/1.0", host: 
""
   2023/08/02 10:31:05 [info] 60#60: *120080 [lua] balancer.lua:195: 
pick_server(): route: 
{"value":{"update_time":1690941321,"create_time":1690275764,"uri":"\/main-data\/http2dubbo\/car_createCar","labels":{"SERVICE":"main-data","API_VERSION":"1.0.0","API_GROUP":"http2dubbo"},"id":"main-data_car_createCar","status":1,"methods":["POST"],"upstream_id":"main-data-dubbo","plugins":{"dubbo-proxy":{"service_name":"com.zto56.site.web.proxy.Http2DubboService","method":"invoke","service_version":"1.0.0"}},"priority":0,"name":"main-data_car_createCar"},"orig_modifiedIndex":5183,"modifiedIndex":5183,"createdIndex":4995,"key":"\/apisix-inner\/routes\/main-data_car_createCar","clean_handlers":{},"update_count":0,"has_domain":false},
 client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [error] 104#104: *118906 lua entry thread aborted: 
runtime error: /usr/local/apisix/apisix/discovery/nacos/init.lua:361: attempt 
to index upvalue 'applications' (a nil value)
   stack traceback:
   coroutine 0:
           /usr/local/apisix/apisix/discovery/nacos/init.lua: in function 
'nodes'
           /usr/local/apisix/apisix/upstream.lua:259: in function 'set_upstream'
           /usr/local/apisix/apisix/init.lua:588: in function 'fun_org'
           /usr/local/apisix/apisix/debug.lua:195: in function 
'http_access_phase'
           access_by_lua(nginx.conf:342):2: in main chunk, client: 
10.202.17.34, server: _, request: "POST /main-data/http2dubbo/car_createCar 
HTTP/1.0", host: ""
   2023/08/02 10:31:05 [warn] 104#104: *118906 [lua] debug.lua:190: 
http_header_filter_phase(): call require("apisix").http_header_filter_phase() 
args:{}, client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""
   2023/08/02 10:31:05 [info] 104#104: *118906 [lua] init.lua:620: fetch_ctx(): 
fetch ngx ctx: 2, client: 10.202.17.34, server: _, request: "POST 
/main-data/http2dubbo/car_createCar HTTP/1.0", host: ""


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