starsz opened a new issue #1737:
URL: https://github.com/apache/apisix-dashboard/issues/1737


   ## Issue description
   <!-- A clear and concise description of what the issue is. -->
   
   Hello, I find that when we do the request `GET /apisix/admin/labels/route` 
the result is
   like
   
   ```
   
{"code":0,"message":"","data":{"rows":null,"total_size":0},"request_id":"74476a59-a466-4c77-8d6c-18cea6560df6"}
   ```
   
   ## Expected behavior
   <!-- A clear and concise description of what you expected to happen. -->
   
   The row field is nil. 
   It should be `[]`.
   
   ## How to Reproduce
   
   1. Request to get the auth token
   ```
   curl http://127.0.0.1:9000/apisix/admin/user/login -X POST -d 
'{"username":"admin", "password": "admin"}' -H "Content-Type: application/json"
   ```
   2. Use the token to get the lable list
   ```
   curl localhost:9000/apisix/admin/labels/route -H "Authorization: 
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTgwNTI5MDMsImlhdCI6MTYxODA0OTMwMywic3ViIjoiYWRtaW4ifQ.N45AjXd9ECp7wjOgK6FZR39eIbXpjofx8ji0qT5OoEE"
   ```
   The result is 
   ```
   
{"code":0,"message":"","data":{"rows":null,"total_size":0},"request_id":"6d90a12c-4091-46ae-b273-1c3675435696"}
   ```
   
   ## Screenshots
   <!-- Add screenshots to help explain your problem if applicable. -->
   
   ## Environment
   
   * apisix version (cmd: `apisix version`): 
   * OS (cmd: `uname -a`): 
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
   * apisix-dashboard version, if have: master branch
   * Browser version, if have:
   
   ## Additional context
   
   Add we need to check the row field in all modules.


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


Reply via email to