You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025/01/17 13:31:20 [error] 2550#0: *11300 [lua] api_helpers.lua:541: handle_error(): /usr/local/share/lua/5.1/lapis/application.lua:440: /usr/local/share/lua/5.1/lapis/application.lua:488: attempt to call method 'lower' (a nil value)
stack traceback:
/usr/local/share/lua/5.1/lapis/application.lua: in function </usr/local/share/lua/5.1/lapis/application.lua:484>
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/lapis/application.lua:440: in function 'handler'
/usr/local/share/lua/5.1/lapis/application.lua:186: in function 'resolve'
/usr/local/share/lua/5.1/lapis/application.lua:217: in function </usr/local/share/lua/5.1/lapis/application.lua:215>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/lapis/application.lua:215: in function 'dispatch'
/usr/local/share/lua/5.1/lapis/nginx.lua:231: in function 'serve'
/usr/local/share/lua/5.1/kong/init.lua:2130: in function 'admin_content'
content_by_lua(nginx-kong.conf:447):2: in main chunk, client: 172.17.0.1, server: kong_admin, request: "GET / HTTP/1.1", host: "127.0.0.0"
The trace from the server relates to the lapis, so I have created the issue in this repository instead of Kong.
Steps to reproduce
The start.sh file (based on the docker image documentation):
As I can see, lower method expects string in content_type variable (and receives it, if there is only one header with key Content-Type). However, if multiple lines Content-Type: ... provided, the content_type variable will contain a table.
Is there an existing issue for this?
No, I have searched the existing issues (query:
"attempt to call method 'lower'"
)Related issue: Kong/kong#14187
Version
I am using the docker image
kong:3.9.0-ubuntu
Error
Logs from netcat:
Logs from server:
The trace from the server relates to the lapis, so I have created the issue in this repository instead of Kong.
Steps to reproduce
The
start.sh
file (based on the docker image documentation):The Packet
packet.txt
(two empty lines at the end. The line-endings must be CRLF):The
send.sh
script:Steps:
bash start.sh
bash send.sh packet.txt
Misc
As I can see,
lower
method expects string incontent_type
variable (and receives it, if there is only one header with keyContent-Type
). However, if multiple linesContent-Type: ...
provided, thecontent_type
variable will contain a table.Related source code:
lapis/lapis/application.lua
Line 487 in a13caec
lapis/lapis/application.moon
Line 428 in a13caec
The text was updated successfully, but these errors were encountered: