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/02/18 11:07:12 UTC

[GitHub] [incubator-apisix] AbelZhou opened a new issue #1138: bug: 获取JWT token网页500错误

AbelZhou opened a new issue #1138: bug: 获取JWT token网页500错误
URL: https://github.com/apache/incubator-apisix/issues/1138
 
 
   ### Issue description
   ```
   2020/02/18 18:37:10 [error] 72220#0: *3791238 lua entry thread aborted: runtime error: /Users/abel/server/apisix/lua/apisix/consumer.lua:38: attempt to index local 'consumer' (a boolean value)
   stack traceback:
   coroutine 0:
   	/Users/abel/server/apisix/lua/apisix/consumer.lua: in function 'create_obj_fun'
   	/Users/abel/server/apisix/lua/apisix/core/lrucache.lua:64: in function 'global'
   	/Users/abel/server/apisix/lua/apisix/consumer.lua:64: in function 'plugin'
   	/Users/abel/server/apisix/lua/apisix/plugins/jwt-auth.lua:169: in function 'handler'
   	/Users/abel/server/apisix/lua/apisix/plugin.lua:213: in function 'handler'
   	...el/server/apisix//deps/share/lua/5.1/resty/radixtree.lua:627: in function 'dispatch'
   	...l/server/apisix/lua/apisix/http/router/radixtree_uri.lua:110: in function 'match'
   	/Users/abel/server/apisix/lua/apisix.lua:264: in function 'http_access_phase'
   	access_by_lua(nginx.conf:138):2: in main chunk, client: 127.0.0.1, server: , request: "GET /apisix/plugin/jwt/sign?key=zhangsan HTTP/1.1", host: "127.0.0.1:9080"
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): v1.0
   * OS: MacOS
   
   ### Minimal test code / Steps to reproduce the issue
   1.在dashboard中添加consumer ” algorithm:HS256  secret:satopvemVcXFn6e3LCC2sa3JytMHcNi7  key:zhangsan exp:888888888“
   2.给service添加空白JWT插件
   3.获取token
   
   ### What's the actual result? (including assertion message & call stack if applicable)
   
   
   
   ### What's the expected result?
   

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误

Posted by GitBox <gi...@apache.org>.
AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误
URL: https://github.com/apache/incubator-apisix/issues/1138#issuecomment-587419287
 
 
   当我想调试一下的时候,我关闭了lua_code_cache,然后发现很多接口都不通了,还原代码缓存然后重启后这个issue问题不复现了。诡异。。

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] AbelZhou closed issue #1138: bug: 获取JWT token网页500错误

Posted by GitBox <gi...@apache.org>.
AbelZhou closed issue #1138: bug: 获取JWT token网页500错误
URL: https://github.com/apache/incubator-apisix/issues/1138
 
 
   

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误

Posted by GitBox <gi...@apache.org>.
AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误
URL: https://github.com/apache/incubator-apisix/issues/1138#issuecomment-588632986
 
 
   已解决

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误

Posted by GitBox <gi...@apache.org>.
AbelZhou commented on issue #1138: bug: 获取JWT token网页500错误
URL: https://github.com/apache/incubator-apisix/issues/1138#issuecomment-587420924
 
 
   重新在dashboard添加一个新的consumer后,又复现了。

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


With regards,
Apache Git Services