Firstsawyou commented on issue #3498:
URL: https://github.com/apache/apisix/issues/3498#issuecomment-772332757
> they are status code from my apisix log
> [root@ecs-551a apisix_log]# grep 'GET|POST' access.log |awk '{print
$10}'|sort -rn|uniq -c
>
> ```
> 37 502
> 1744 500
> 314 499
> 2 408
> 17238 404
> 166 403
> 26 401
> 101 400
> 1003 304
> 18417 302
> 30 301
> 75 206
> 7 201
> 611597 200
> ```
You should check whether the response data contains the header information
of `X-APISIX-Upstream-Status` in the 500 request. This header information can
help us troubleshoot the problem.
For example:
```
$ curl http://127.0.0.1:9080/hello -i
HTTP/1.1 500 Internal Server Error
Date: Wed, 03 Feb 2021 01:35:00 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 154
Connection: keep-alive
Server: APISIX/2.2
X-APISIX-Upstream-Status: 500, 500
......
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]