valpa opened a new issue #1079: bug: URL: https://github.com/apache/incubator-apisix/issues/1079 ### Issue description Attempt to get JWT token fail when run command curl -i -X GET http://localhost:9080/apisix/plugin/jwt/sign?key=1212121212 if there is only one consumer ### Environment * apisix version (cmd: `apisix version`): 1.0 * OS: docker version from https://github.com/apache/incubator-apisix-docker.git ### Minimal test code / Steps to reproduce the issue Ensure there is no consumer configured Run following commands: `curl -i -X PUT http://localhost:9080/apisix/admin/consumers -d '{"username":"1212121212","plugins":{"jwt-auth":{ "key":"1212121212"}}}' curl -i -X GET http://localhost:9080/apisix/plugin/jwt/sign?key=1212121212 curl -i -X PUT http://localhost:9080/apisix/admin/consumers -d ' { "username": "jack", "plugins": { "jwt-auth": { "key": "user-key", "secret": "my-secret-key" } } }' curl -i -X GET http://localhost:9080/apisix/plugin/jwt/sign?key=1212121212 ` ### What's the actual result? (including assertion message & call stack if applicable) The first curl command get 500 error The second curl command get 200 OK ### What's the expected result? The first curl command shall get 200 OK with a token
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
