apisix
apisix copied to clipboard
apisix will retry the post method?
Description
use the apisix default value,if the post request return 502,then apisix will retry the next upstream server and return 200,how to chang this?and why use settings?
Environment
- APISIX version (run
apisix version):2.15.3 - Operating system (run
uname -a): - OpenResty / Nginx version (run
openresty -Vornginx -V): - etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): - APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Do you mean you want APISIX to return 5xx instead of trying the next upstream node?
Do you mean you want APISIX to return 5xx instead of trying the next upstream node?
yes,which place i can cancle this settings?
I don't think this is possible (cc @shreemaan-abhishek ). Can you provide your use case and explain why you would like to implement this?
I don't think this is possible (cc @shreemaan-abhishek ). Can you provide your use case and explain why you would like to implement this?
Post requests are not idempotent and retrying is risky.
I don't think this is possible (cc @shreemaan-abhishek ). Can you provide your use case and explain why you would like to implement this?
Which scenarios and request methods are retried by default? Can you list this?
I think this can help you .But you may need edit nginx.conf after apisix init if config.yml not support this
https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream