You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/17 06:09:33 UTC

[GitHub] [apisix] liangliang4ward opened a new issue #6348: request help: X-APISIX-Upstream-Status why only 5xx

liangliang4ward opened a new issue #6348:
URL: https://github.com/apache/apisix/issues/6348


   ### Issue description
   
   Why is the return header `x-apisix-upstream-status` only 5xx? why not include all upstream status?
   
   
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.12.1
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] liangliang4ward commented on issue #6348: request help: X-APISIX-Upstream-Status why only 5xx

Posted by GitBox <gi...@apache.org>.
liangliang4ward commented on issue #6348:
URL: https://github.com/apache/apisix/issues/6348#issuecomment-1042648212


   > 
   
   yes I know that;
   
   but sometimes 4xx is easily confused with apisix return;
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] starsz commented on issue #6348: request help: X-APISIX-Upstream-Status why only 5xx

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #6348:
URL: https://github.com/apache/apisix/issues/6348#issuecomment-1042630969


   Hi @liangliang4ward.
   > Added X-APISIX-Upstream-Status header to distinguish 5xx errors from upstream or APISIX itself.
   https://github.com/apache/apisix/blob/master/CHANGELOG.md#core-11
   
   As the changelog says, it's used to distinguish 5xx errors from upstream or APISIX itself.
   
   The code is here:
   https://github.com/apache/apisix/blob/f37fc0eb77abbf7fdf98ea40ce706d75e5582a4b/apisix/init.lua#L591-L609
   
   The original PR is here:
   https://github.com/apache/apisix/pull/2817


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #6348: request help: X-APISIX-Upstream-Status why only 5xx

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6348:
URL: https://github.com/apache/apisix/issues/6348#issuecomment-1043768493


   Let's move the discussion to https://github.com/apache/apisix/issues/3963.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #6348: request help: X-APISIX-Upstream-Status why only 5xx

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #6348:
URL: https://github.com/apache/apisix/issues/6348


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org