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 2020/12/14 09:11:36 UTC
[GitHub] [apisix] membphis commented on issue #3035: bug: del upstream but not del route, request the route, return 500
membphis commented on issue #3035:
URL: https://github.com/apache/apisix/issues/3035#issuecomment-744296970
Here is an example, the APISIX will return `500` if failed to load the upstream by id `upstream_id`, and will generate a error log.
```shell
curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/index.html",
"plugins": {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
}
},
"upstream_id": "no_exist_id"
}'
```
For this case, the APISIX can return `502` and write a WARN error log, should be enough
----------------------------------------------------------------
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:
users@infra.apache.org