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

Latest Version of openresty shows error regarding content-length header needs to be defined #83

Open
LePresidente opened this issue Oct 22, 2024 · 2 comments

Comments

@LePresidente
Copy link
Contributor

==> proxy-host-2_error.log <==
2024/10/22 13:10:02 ¡error¿ 193£193: *82 lua entry thread aborted: runtime error: /etc/nginx/lualib/crowdsec.lua:410: http2 requests are not supported without content-length header
stack traceback:
coroutine 0:
¡C¿: in function 'read_body'
/etc/nginx/lualib/crowdsec.lua:410: in function 'get_body'
/etc/nginx/lualib/crowdsec.lua:523: in function 'AppSecCheck'
/etc/nginx/lualib/crowdsec.lua:613: in function 'Allow'
access_by_lua(conf.d/crowdsec_openresty.conf:24):6: in main chunk, client: , server: , request: "GET /favicon.ico HTTP/2.0", host: "", referrer: "

@inthreedee
Copy link

inthreedee commented Dec 27, 2024

@LePresidente I ran into this same error while trying to configure appsec on my instance using your NPM fork. The discussion begins over in crowdsecurity/example-docker-compose#30 (comment) and @LaurenceJJones has a question for you in this comment: crowdsecurity/example-docker-compose#30 (comment)

However, this error is happening from the Lua library itself, however, this was removed from the latest version so I don't know if LePresidente needs to bump the version or even NPM.

@inthreedee
Copy link

Update: NPM updated to v2.12.2 and this error has been resolved for me.

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

2 participants