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 2020/11/10 02:57:52 UTC

[GitHub] [apisix] idbeta commented on issue #2649: bug: The jwt plugin does not handle the case where `exp` is empty

idbeta commented on issue #2649:
URL: https://github.com/apache/apisix/issues/2649#issuecomment-724417408


   new merged code still have problem in my env
   ```
   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"
   ```


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