We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphql post requests have a probability of causing routing matching exception.
The larger the body, the greater the probability of routing exceptions, which may be affected by other requests in the final result.
expect POST http://test.com/hello -> route a POST http://test2.com/hello -> rout b
actual POST http://test.com/hello -> route a POST http://test2.com/hello -> route a
No response
config.yaml
deployment: role: data_plane role_data_plane: config_provider: yaml apisix: router: http: radixtree_uri nginx_config: worker_processes: 1
apisix.yaml
routes: - uri: "/hello" hosts: - test.com vars: - - "graphql_name" - "==" - "createAccount" priority: 30 id: "graphql1" upstream_id: "invalid" - uri: "/hello" hosts: - test.com plugins: echo: body: "test server\n" priority: 20 id: "graphql2" upstream_id: "invalid" - uri: "/hello" hosts: - test2.com plugins: echo: body: "test2\n" priority: 20 id: "graphql3" upstream_id: "invalid" upstreams: - nodes: 127.0.0.1:1999: 1 id: "invalid" ``` 3. request params ```shell ➜ apisix git:(master) ✗ curl -Z http://test.com:9080/hello -H "Content-Type: application/json" -X POST -d @schema.json -Z http://test2.com:9080/hello test2 test2 ➜ apisix git:(master) ✗ curl -Z http://test.com:9080/hello -H "Content-Type: application/json" -X POST -d @schema.json -Z http://test2.com:9080/hello test2 test server ➜ apisix git:(master) ✗ curl -Z http://test.com:9080/hello -H "Content-Type: application/json" -X POST -d @schema.json -Z http://test2.com:9080/hello test2 test2 ➜ apisix git:(master) ✗ curl -Z http://test.com:9080/hello -H "Content-Type: application/json" -X POST -d @schema.json -Z http://test2.com:9080/hello test2 test2
apisix version
uname -a
openresty -V
nginx -V
curl http://127.0.0.1:9090/v1/server_info
luarocks --version
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Current Behavior
Graphql post requests have a probability of causing routing matching exception.
The larger the body, the greater the probability of routing exceptions, which may be affected by other requests in the final result.
expect
POST http://test.com/hello -> route a
POST http://test2.com/hello -> rout b
actual
POST http://test.com/hello -> route a
POST http://test2.com/hello -> route a
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
config.yaml
apisix.yaml
configureEnvironment
apisix version
): master/3.5.0uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: