mushenglon-sudo commented on issue #12713:
URL: https://github.com/apache/apisix/issues/12713#issuecomment-3540351560

   I used the address of upstream in the _. before _ xy stage
   local http_obj = http.new()
   local ok, err = http_obj:connect({
   scheme = ctx.upstream_scheme,
   host = ctx.picked_server.host,
   port = ctx.picked_server.port,
   })
   Then use it again
   local httpc = http.new()
   httpc:set_timeout(conf.timeout)
   local res, err = httpc:request_uri(conf.uri, params)
   httpc:close()
   The same client requests twice
   Two returns are different
   
   this is log
   
   
   2025/11/17 07:27:21 [error] 50 # 50: * 1338 [lua] custom output check. lua: 
162: 
get-response():==========================================================================,
 client: 192.168.65.1, server: _, request: "POST 
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
   2025/11/17 07:27:21 [error] 50#50: *1338 [lua] custom-output-check.lua:163: 
get_response(): Status: 200, client: 192.168.65.1, server: _, request: "POST 
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
   2025/11/17 07:27:21 [error] 50 # 50: * 1338 [lua] custom output check. lua: 
164: getresponsive(): Authentication Service Response Body: {"code": "Success", 
"requestId": "337a3d6b-d88d-4d3f-9937-4deacc33069d", "statiusCode": 0, "data": 
{"choices": [{"finishreason": "length", "index": 0, "logprobes": null, 
"prompt_rogrobots": null, "prompt_tokeni_ids": null, stop_deason ": null," text 
":" Is there any connection between M78 Nebula and Chengdu? Is there any 
connection between M78 Nebula and Chengdu? Is there any connection between M78 
Nebula and Chengdu? Is there any connection between M78 Nebula and Chengdu? Is 
there any connection between M78 Nebula and Chengdu? Is there any connection 
between M78 Nebula and Chengdu? M78 Star "," token_ids ": null}]," created ": 
1763014030," id ":" cmpl-ad0ecc9b60954d059F77aef4c5f62c3a "," 
kv_transfer_marams ": null," model ":" model "," object ":" text_completion "," 
service_tier ": null," system_fingerprint ": null," usage ": {" perfect_token 
": 
 70," prompt_token ": 13," prompt_token s_details ": null," totals ": 83}}, 
client: 192.168.65.1, server: _, request:" POST/protected word 
manager/API/v1/Content HTTP/1.1 ", host:" 127.0.0.1:9080“
   192.168.65.1 - - [17/Nov/2025:07:27:21 +0000] 127.0.0.1:9080 "POST 
/protected-word-manager/api/v1/Content HTTP/1.1" 200 783 0.014 "-" 
"PostmanRuntime/7.50.0" - - - " http://127.0.0.1:9080 "
   2025/11/17 07:27:33 [error] 50 # 50: * 1338 [lua] custom output check. lua: 
162: 
get-response():==========================================================================,
 client: 192.168.65.1, server: _, request: "POST 
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
   2025/11/17 07:27:33 [error] 50#50: *1338 [lua] custom-output-check.lua:163: 
get_response(): Status: 400, client: 192.168.65.1, server: _, request: "POST 
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
   2025/11/17 07:27:33 [error] 50 # 50: * 1338 [lua] custom output check. lua: 
164: getresponsive(): authentication service response body: 400 Bad Request, 
client: 192.168.65.1, server: _, request: "POST 
/protected-word-manager/api/v1/Content HTTP/1.1", host: "127.0.0.1:9080"
   192.168.65.1 - - [17/Nov/2025:07:27:33 +0000] 127.0.0.1:9080 "POST 
/protected-word-manager/api/v1/Content HTTP/1.1" 400 25 0.003 "-" 
"PostmanRuntime/7.50.0" - - - " http://127.0.0.1:9080 "


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