PushProx icon indicating copy to clipboard operation
PushProx copied to clipboard

Client err="malformed HTTP request \"<html>\""

Open denibertovic opened this issue 5 years ago • 6 comments

I'm trying to run pushprox but I'm getting the following error:

caller=main.go:179 msg="Error reading request:" err="malformed HTTP request """

My setup is ALB (http->https redirect) -> Nginx (basic auth) -> pushprox-proxy. The clients however are on HTTP only.

Since I figured it might be something to do with mixing https and http I got rid of 301 redirect to https and tried serving and connecting to the proxy over HTTP. I also tried getting rid of the Nginx in font that was providing basic auth but the problem remained the same.

This appears to be the only errors I'm seeing. The proxy doesn't appear to be outputting any errors. And of course no metrics are being scraped.

denibertovic avatar Apr 08 '20 20:04 denibertovic

A bit of an update. It would seem that it's the ALBs fault somehow. If I use the EC2 instance directly then it works.

Interesting side realization btw....the node was marked as UP the entire time even though no scrapes were happening.

denibertovic avatar Apr 08 '20 21:04 denibertovic

Hi! Have you figured out what was the issue? I'm experiencing a very similar problem.

pushprox-client is outputting err="malformed HTTP request \"\"" error, is shown live, but no scrapes are successful.

scythargon avatar Sep 22 '21 10:09 scythargon

any updates on this case? because I am experiencing the same thing. it seems to be wrong in the request from pushprox-client, because in Prometheus and nginx it's already correct.

hendras8 avatar Jan 10 '24 10:01 hendras8

I haven't figured out the issue that happened and I ended up not using this project. Took a different approach. Feel free to close.

denibertovic avatar Jan 17 '24 15:01 denibertovic

I faced the same issue. Does anyone know how to resolve it?

menvol3 avatar Mar 19 '24 15:03 menvol3