You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I update the uris of an already created route, necessary effects are getting taken for the old uris name, but for the new ones, it is causing a 404 nginx/openresty error.
Expected behavior
The update should either take place or not, if the manager-api is able to update it should display the upstream content, else the apisix should send an error. But in this case the error is shown from nginx.
Thanks, @nic-chen, @starsz for looking into this. Actually, the error has nothing to do with manager-api. Thanks to @Jaycean, only /hello, /hello_ and /hello1 routes are whitelisted on the upstream docker image that we are currently using for testing [ ref ]. So in the case of newhello it's a 404 from upstream itself.
Issue description
If I update the uris of an already created route, necessary effects are getting taken for the old uris name, but for the new ones, it is causing a 404 nginx/openresty error.
Expected behavior
The update should either take place or not, if the manager-api is able to update it should display the upstream content, else the apisix should send an error. But in this case the error is shown from nginx.
How to Reproduce
./setup.sh up
hello
& route id r1[PUT] http://localhost:9000/apisix/admin/routes/r1
newhello
keeping the same upstream[PUT] http://localhost:9000/apisix/admin/routes/r1
It disables the old route. but for the updated route it is throwing an Nginx error.
Screenshots
after making the first API call
After updating the uri
The old uri
The new URI
Environment
Running the tests using docker-compose services.
uname -a
): Linux turing 5.8.0-44-generic 50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxAdditional context
The text was updated successfully, but these errors were encountered: