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/10/22 04:54:27 UTC

[GitHub] [apisix] membphis edited a comment on issue #2426: bug:enable openid-connect plugin without redirect_uri got 500 error

membphis edited a comment on issue #2426:
URL: https://github.com/apache/apisix/issues/2426#issuecomment-714224798


   > ```shell
   > 2020/10/10 06:47:45 [error] 26#26: *6045490 [lua] openid-connect.lua:163: phase_func(): failed to authenticate in openidc: request to the redirect_uri path but there's no session state found, client: 192.168.1.145, server: , request: "GET
   > ```
   
   we got this error, I think it is fine. because you did not set a correct `redirect_uri`. 
   
   when missing `redirect_uri`, it'll use `ctx.var.request_uri` as default value: http://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_uri . 
   
   > ``` shell
   > 2020/10/10 06:47:45 [error] 25#25: *6045493 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/plugins/echo.lua:96: attempt to index local 'conf' (a userdata value)
   > stack traceback:                                                                                                                                            
   > coroutine 0:                                                                                                                                             
   >         /usr/local/apisix/apisix/plugins/echo.lua: in function 'phase_fun'                                                                                     
   >         [string "route#41ee9eef-564e-4208-86e6-fc6834bd7178"]:17: in function 'phase_func'                                                                  
   >         /usr/local/apisix/apisix/script.lua:52: in function 'run'                                                                                                 
   >         /usr/local/apisix/apisix/init.lua:508: in function 'http_access_phase'  
   > ```
   
   @liuxiran that is another error message of plugin `echo`, but I do not find you enabled this plugin. so I think this error message is not related to this 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