zhangxiaohui123456 commented on issue #3518:
URL: https://github.com/apache/apisix/issues/3518#issuecomment-773137632


   > > > > These error logs look very strange, the file that reported the error 
does not belong to apisix. Can you provide the response header data of the 
wrong request, like this:
   > > > > ```
   > > > > $ 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 helps us troubleshoot the issue.
   > > > 
   > > > 
   > > > > These error logs look very strange, the file that reported the error 
does not belong to apisix. Can you provide the response header data of the 
wrong request, like this:
   > > > > ```
   > > > > $ 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 helps us troubleshoot the issue.
   > > > > curl http://172.18.234.22:23111/tour/test.html -i
   > > > > log is :
   > > > > HTTP/1.1 500 Internal Server Error
   > > > > Date: Thu, 04 Feb 2021 07:51:51 GMT
   > > > > Content-Type: text/html; charset=utf-8
   > > > > Content-Length: 1502
   > > > > Connection: close
   > > > > X-XSS-Protection: 1; mode=block
   > > > > X-Content-Type-Options: nosniff
   > > > > Referrer-Policy: no-referrer-when-downgrade
   > > > > Strict-Transport-Security: max-age=31536000; includeSubdomains
   > > > > Content-Security-Policy: default-src * data: 'unsafe-eval' 
'unsafe-inline'
   > > > > Cache-Control: no-cache, no-store, max-age=0, must-revalidate
   > > > > Pragma: no-cache
   > > > > Expires: 0
   > > 
   > > 
   > > Why is there no response header information for `Server: APISIX/2.2` ?
   > 
   I set up  apisix-2.1  In my machine and I use configuration  
   
{"hash_on":"vars","enable_websocket":false,"timeout":{"connect":15,"send":15,"read":15},"type":"chash","hash_on"
 : "vars_combinations","key" : 
"$request_uri$remote_addr","retries":3,"desc":"photo-api","id":"photo-api-upstream","name":"photo-api","nodes":{"192.168.17.14:23095":8,"192.168.17.14:23096":8}}
 , error info is change :
   


----------------------------------------------------------------
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]


Reply via email to