-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Parse Error: Invalid header value char #23
Comments
I think it caused by invalid http response header rather than 1.0.1 itself, because 1.0.1 just added User-Agent and nothing else in this part. Related issue: |
Thanks. I wonder why it was working fine in earlier version. |
I see the Incapsula WAF reference here as well, which is what we use. Any way to make the changes others are suggesting to resolve this issue? |
Getting the same issue on apparently well configured websites. |
Same issue here for some webs (also a web protected by Incapsula ... btw) |
You should report to Incapsula, because they are corrupted your http header. |
Just an update. I spoke with Incapsula (Imperva) and they stated this: "I suspect that this is being caused by our client classification cookie, which is a malformed cookie by design...The client classification cookie is just one of many different client classification methods that we use, so disabling it will not increase the security risk towards the site." I also know that Uptime Robot, OhDear!, and others don't have this issue. What's unique about Kuma? |
Hi there, for the people coming here for a fix I just wanted to add that if you're running uptime-kuma in docker container and you see this issue (maybe you're unlucky enough to be forced to monitor resources behing incapsula malformed cookies) you can quickly fix by launching the docker container with --insecure-http-parser like this:
Please make sure the --insecure-http-parser goes before the js file for this to work. Hope it's useful to you all. p.s.: |
Just tested, --insecure-http-parser switch working for me. Thanks (I do have some sites behind Imperva Incapsula) |
Thanks @simmessa for the solution, much appreciated! Would it be possible to implement some type of "disregard malformed cookies" option on per-monitor level? That way we don't need to make the entire Uptime Kuma instance parse insecure HTTP headers, but rather only when really necessary. |
@mitin20 check this spec out on a k8s deployment:
|
Using environment variable should be easier in Docker/K8s.
|
Thanks it worked for my docker-compose too:
|
Just chiming in here to say I too would like to see the ability to implement this on a per-monitor level as well. |
Removed old Docker image and setup latest 1.0.1. Added a check to a website that was successfully being checked prior. Getting this error:
Parse Error: Invalid header value char
Have another site that's still working fine. So this error is new with this new version.
The text was updated successfully, but these errors were encountered: