prometheus-community/PushProx

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

denibertovic opened this issue · 5 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.

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.

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.

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.

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.

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