liuxiran opened a new issue #4946:
URL: https://github.com/apache/apisix/issues/4946


   ### Issue description
   
   There are 12 routes in my local env, they are:
   
   
![image](https://user-images.githubusercontent.com/2561857/131471744-d31ccbd2-aba1-4bd9-8381-8f1fef82950b.png)
   
   and then I tried to get route list by Admin-API `GET  /apisix/admin/routes`, 
here is the result:
   
   
![image](https://user-images.githubusercontent.com/2561857/131472161-8ece6205-0665-46e3-83f0-e1cca387adcc.png)
   
   There are two problems:
   * there is only one route info returned by the API `GET  
/apisix/admin/routes`
   * the `count` field in the response parameters is wrong, returns 11, but 
actually 12.
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): Darwin Kernel Version 20.3.0
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):  
openresty/1.19.3.1
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
3.4.15
   - apisix-dashboard version, if have: null
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`): 3.6.0
   
   
   ### Steps to reproduce
   
   as the description above
   
   ### Actual result
   
   as the description above
   
   ### Error log
   
   as the description above
   
   ### Expected result
   
   * should list all routes
   * count value should be right


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to