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 2021/04/10 10:10:26 UTC

[GitHub] [apisix-dashboard] starsz opened a new issue #1737: Bug: the row field is nil when request to get the label list

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:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan closed issue #1737: Bug: the row field is nil when request to get the label list

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #1737:
URL: https://github.com/apache/apisix-dashboard/issues/1737


   


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



[GitHub] [apisix-dashboard] starsz commented on issue #1737: Bug: the row field is nil when request to get the label list

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #1737:
URL: https://github.com/apache/apisix-dashboard/issues/1737#issuecomment-817268331


   > Hey @starsz, I have made the fix. Feel free to check it out :)
   
   Yeah.Thanks!


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



[GitHub] [apisix-dashboard] bisakhmondal commented on issue #1737: Bug: the row field is nil when request to get the label list

Posted by GitBox <gi...@apache.org>.
bisakhmondal commented on issue #1737:
URL: https://github.com/apache/apisix-dashboard/issues/1737#issuecomment-817202376


   Hey @starsz, I have made the fix. Feel free to check it out :)


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