used dashboard add consumer of jwt, would have an error when get the jwt token
2020/11/10 10:51:19 [error] 25300#2021499: *20001 lua entry thread aborted: runtime error: /Users/idbeta/1106/apisix/apisix/plugins/jwt-auth.lua:177: attempt to perform arithmetic on field 'exp' (a nil value)
stack traceback:
coroutine 0:
/Users/idbeta/1106/apisix/apisix/plugins/jwt-auth.lua: in function 'sign_handler'
/Users/idbeta/1106/apisix/apisix/plugins/jwt-auth.lua:299: in function 'handler'
/Users/idbeta/1106/apisix/apisix/api_router.lua:108: in function 'handler'
...beta/1106/apisix//deps/share/lua/5.1/resty/radixtree.lua:775: in function 'dispatch'
/Users/idbeta/1106/apisix/apisix/api_router.lua:134: in function 'match'
/Users/idbeta/1106/apisix/apisix/init.lua:379: in function 'http_access_phase'
access_by_lua(nginx.conf:177):2: in main chunk, client: 127.0.0.1, server: , request: "GET /apisix/plugin/jwt/sign?key=dd HTTP/1.1", host: "127.0.0.1:9080"
the etcd data
{"id":"test_jwt","create_time":1604976497,"update_time":1604976497,"username":"test_jwt","plugins":{"jwt-auth":{"algorithm":"HS256","base64_secret":false,"key":"dd","secret":"my-secret-key"}}}
relate apache/apisix#2649
used dashboard add consumer of jwt, would have an error when get the jwt token
the etcd data
relate apache/apisix#2649