spacewander commented on issue #856:
URL: 
https://github.com/apache/apisix-dashboard/issues/856#issuecomment-734756685


   > 
   > 
   > If I use curl script to access JWT authed page following the guide 
(https://github.com/apache/apisix/blob/master/doc/plugins/jwt-auth.md),
   > Apisix will throw 500 exception.
   > 
   > ```
   > curl http://127.0.0.1:9080/index.html -H 'Authorization: 
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1c2VyLWtleSIsImV4cCI6MTYwNjU1MzYwMH0.GnuK08zLtaNyNW6NiqhkBlnxe7amZpSltU2dYDRRJM4'
 -i
   > HTTP/1.1 500 Internal Server Error
   > Date: Fri, 27 Nov 2020 08:54:08 GMT
   > Content-Type: text/html; charset=utf-8
   > Content-Length: 174
   > Connection: close
   > Server: APISIX/2.0
   > 
   > <html>
   > <head><title>500 Internal Server Error</title></head>
   > <body>
   > <center><h1>500 Internal Server Error</h1></center>
   > <hr><center>openresty</center>
   > </body>
   > ```
   > 
   > This is backend output:
   > 
   > ```
   > 2020/11/27 16:54:08 [error] 3280#3280: *36299 lua entry thread aborted: 
runtime error: ...0-master-version//deps/share/lua/5.1/resty/radixtree.lua:380: 
invalid IP address: invalid ip address: 
   > stack traceback:
   > coroutine 0:
   >         [C]: in function 'error'
   >         ...0-master-version//deps/share/lua/5.1/resty/radixtree.lua:341: 
in function 'pre_insert_route'
   >         ...0-master-version//deps/share/lua/5.1/resty/radixtree.lua:380: 
in function 'new'
   >         .../git-storage/apisix/apisix/http/router/radixtree_uri.lua:77: in 
function 'create_radixtree_router'
   >         .../git-storage/apisix/apisix/http/router/radixtree_uri.lua:84: in 
function 'match'
   >         /app/install/git-storage/apisix/apisix/init.lua:382: in function 
'fun_org'
   >         /app/install/git-storage/apisix/apisix/debug.lua:132: in function 
'http_access_phase'
   >         access_by_lua(nginx.conf:163):2: in main chunk, client: 127.0.0.1, 
server: , request: "GET /index.html HTTP/1.1", host: "127.0.0.1:9080"
   > ```
   
   Please run `etcdctl --endpoints=$your_server get /apisix/route --prefix` to 
get your route configuration and paste them here.


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


Reply via email to