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
Intermittent 502 #871
Comments
The error means that nghttpx found an error while processing response header fields from upstream server. Unfortunately, nghttpx does not log which header field caused this error.
|
Thanks, that's a great concise list of things to check for. I cannot report that any of those are occurring. Here's a lightly redacted request header and response header. The log line from nghttpx indicates a $request_time of 0.003 ms to process this request, whereas the backend took 72ms to reply. So there's no indication that the headers are even available that fast. tcpdump capture indicates approximately 71ms between request and response packets. REQ: RESP: |
I am also able to reliably trigger a 502 response from nghttpx every time with a request that results in a 204 response from the backend, like this one. HTTP/1.1 204 No Content |
Thank you for additional information. It turns out to be a bug of nghttpx. #876 fixes this issue. |
I am using nghttpx to proxy http/2 requests to a load balancer, using plaintext (no-tls specified on the frontend), with TLS handled upstream.
This is a FreeBSD-11-p2 system with nghttp2 package installed via "pkg". I was running version 1.18.0_1, but I see the same results on the latest pkg version 1.21.0.
I'm seeing requests getting 502 errors intermittently in the nghttpx log. After setting the log level to INFO I can see this for an example of a failed request.
HTTP parser failure: (HPE_CB_headers_complete) the on_headers_complete callback failed
Some additional context from the log is below.
Any advice on tracking this down?
Best,
Mark
The text was updated successfully, but these errors were encountered: