Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An unexpected error occurred #191

Open
alihossein opened this issue Jan 27, 2021 · 0 comments
Open

An unexpected error occurred #191

alihossein opened this issue Jan 27, 2021 · 0 comments

Comments

@alihossein
Copy link

unfortunate I facing this 500 error with the postman when I call my service kong with Authorize header :

{
    "message": "An unexpected error occurred"
}

Screenshot from 2021-01-28 01-58-51

kong log :

 | 2021/01/27 22:17:05 [error] 28#0: *930487 unsafe byte "0xa" in header "Bearer realm=\x22experimental\x22,error=\x22response indicates failure, status=400, body=<!DOCTYPE HTML PUBLIC \x22-//IETF//DTD HTML 2.0//EN\x22>\x0A<html><head>\x0A<title>400 Bad Request</title>\x0A</head><body>\x0A<h1>Bad Request</h1>\x0A<p>Your browser sent a request that this server could not understand.<br />\x0A</p>\x0A<hr>\x0A<address>Apache/2.4.29 (Ubuntu) Server at 127.0.1.1 Port 80</address>\x0A</body></html>\x0A\x22", client: 192.168.1.4, server: kong, request: "GET /todos HTTP/1.1", host: "192.168.1.4:8085"
kong              | 2021/01/27 22:17:05 [error] 28#0: *930487 lua coroutine: runtime error: /usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:63: failed to set header
kong              | stack traceback:
kong              | coroutine 0:
kong              | 	[C]: in function 'error'
kong              | 	/usr/local/openresty/lualib/resty/core/response.lua:116: in function '__newindex'
kong              | 	/usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:63: in function 'introspect'
kong              | 	/usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:31: in function 'handle'
kong              | 	/usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:20: in function </usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:14>
kong              | coroutine 1:
kong              | 	[C]: in function 'resume'
kong              | 	coroutine.wrap:21: in function <coroutine.wrap:21>
kong              | 	/usr/local/share/lua/5.1/kong/init.lua:756: in function 'access'
kong              | 	access_by_lua(nginx-kong.conf:87):2: in main chunk, client: 192.168.1.4, server: kong, request: "GET /todos HTTP/1.1", host: "192.168.1.4:8085"
kong              | 2021/01/27 22:17:05 [error] 28#0: *930487 [kong] init.lua:758 [oidc] /usr/local/share/lua/5.1/kong/plugins/oidc/handler.lua:63: failed to set header, client: 192.168.1.4, server: kong, request: "GET /todos HTTP/1.1", host: "192.168.1.4:8085"
kong              | 192.168.1.4 - - [27/Jan/2021:22:17:05 +0000] "GET /todos HTTP/1.1" 500 42 "-" "PostmanRuntime/7.26.8"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant