Open bestjane opened 1 day ago
what error?
what error?
@kayx23 nginx returns http code 200, and apisix returns http code 404
Whether to set the schema to tcp in upstream?
If your upstream speaks HTTP (without TLS) then leave untouched
What error does APSIX return along with 404? 404 is not found. Does the route you request exist?
What error does APSIX return along with 404? 404 is not found. Does the route you request exist?
@kayx23 I used the same request with apisix and nginx to access the following results, where only the port number was modified and the parameters and routes were consistent
APISIX example:
➜ curl -v --location --request POST 'http://xxx:9080/xxx
< HTTP/1.1 404 Not Found
< Content-Length: 0
< Connection: keep-alive
< Date: Fri, 20 Sep 2024 09:39:11 GMT
< Keep-Alive: timeout=4
< Proxy-Connection: keep-alive
< Server: APISIX/3.10.0
<
* Connection #0 to host 127.0.0.1 left intact
Nginx example:
➜ curl -v --location --request POST 'http://xxx:8888/xxx
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: *
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Date: Fri, 20 Sep 2024 09:41:52 GMT
Keep-Alive: timeout=4
Proxy-Connection: keep-alive
Server: nginx/1.20.1
X-Envoy-Upstream-Service-Time: 814
Should the port where it says 31380 be 3001
Should the port where it says 31380 be 3001
@kayx23 no, this is an example I wrote to do a little desensitization.I can confirm that the configuration is correct.
Description
apisix does not complete the request properly, why?
Environment
apisix version
): 3.10.0uname -a
): centosopenresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):