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/05/25 07:49:08 UTC

[GitHub] [apisix] gxthrj commented on issue #7125: bug: apisix2.9 one upstream node fail all request return 502

gxthrj commented on issue #7125:
URL: https://github.com/apache/apisix/issues/7125#issuecomment-1136907985

   I tried with APISIX 2.9 and etcd 3.5 and found no such problem.
   Use `httpbin.org` as upstream.
   
   ```
   # curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "uri": "/ip",
   >     "upstream": {
   >         "type": "roundrobin",
   >         "nodes": {
   >             "httpbin.org": 1
   >         }
   >     }
   > }'
   ```
   
   and then I add `127.0.0.1:80` which is not exist.
   
   ```
   # curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "uri": "/ip",
   >     "upstream": {
   >         "type": "roundrobin",
   >         "nodes": {
   >             "httpbin.org": 1,
   >             "127.0.0.1:80": 1
   >         }
   >     }
   > }'
   ```
   
   The result is OK.
   
   ```
   # curl http://127.0.0.1:9080/ip
   {
     "origin": "10.100.0.1"
   }
   ```


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