sshniro opened a new issue #1250: APISIX occasionally returns 500 for 
httpbin.org
URL: https://github.com/apache/incubator-apisix/issues/1250
 
 
   ### Issue description
   For testing, I use [httpbin.org](https://httpbin.org/) as an upstream 
address to echo the parameters. But I'm starting to get 500 for consequent hits 
for the same address. And occasionally it returns 200 again, the behavior is 
unpredictable.
   
   Does anyone know why is this happening? Is this something related to caching 
or timeouts?
   
   I tested httpbin.org without proxying via APISIX with a 1-second loop and 
the response is always 200.
   
   The following is the screenshot when I access `httpbin` via apisix with 
1-second interval.
   
   
![image](https://user-images.githubusercontent.com/13045528/76594533-b389ac80-64f9-11ea-87d6-57b656a2259f.png)
   
   The following is the screenshot when I access `httpbin` without any proxy 
with 1-second interval.
   
   
![image](https://user-images.githubusercontent.com/13045528/76594580-d3b96b80-64f9-11ea-8943-b385b196c684.png)
   
   The following is my configuration.
   
   ```bash
   curl "http://127.0.0.1:9080/apisix/admin/upstreams/50"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "type": "roundrobin",
       "nodes": {
           "httpbin.org:443": 1
       }
   }'
   ```
   
   ```bash
   curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/samplePrefix/get",
       "plugins": {
           "proxy-rewrite": {
             "scheme": "https",
             "regex_uri": ["^/samplePrefix/get(.*)", "/get$1"]
           }
       },
       "upstream_id": 50
   }'
   ```
   
   ```bash
   curl -i -X GET http://127.0.0.1:9080/samplePrefix/get?param1=foo&param2=bar
   ```
   
   ```bash
   curl -i -X GET https://httpbing.org
   ```
   
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to