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

Reverse proxy returns 500 on ERROR_WINHTTP_INVALID_SERVER_RESPONSE #533

Open
qrli opened this issue Nov 8, 2019 · 0 comments
Open

Reverse proxy returns 500 on ERROR_WINHTTP_INVALID_SERVER_RESPONSE #533

qrli opened this issue Nov 8, 2019 · 0 comments
Assignees

Comments

@qrli
Copy link

qrli commented Nov 8, 2019

When ERROR_WINHTTP_INVALID_SERVER_RESPONSE (we found in SF logs) happens to SF reverse proxy, it returns 500 instead of 502, which is misleading.

SF log sample:
ca41421c-9691-40f0-9884-b2c5c6078784 Error while forwarding request to service: request url = https://xxx:19008/xxx/xxx/xxx/xxx, verb = GET, remote (client) address = 10.0.1.11, request processing start time = 2019-11-08T08:17:58.4864421Z, forward url = http://10.0.14.6:33604/xxx/xxx, response status code = 500, description = Internal Server Error, phase = FinishSendRequest, internal error = ERROR_WINHTTP_INVALID_SERVER_RESPONSE

We observe many such errors with recent Node.js versions. Looks related to this issue.

Expected Behavior

It should return 502.

Current Behavior

It returns 500 confusingly, as we never expected a reverse proxy to produce 500 by itself.

Steps to Reproduce

Host a Node.js web server in SF and access via reverse proxy.
A small percentage of requests will hit this issue. Node v10.15.* has higher rate.

Context (Environment)

Azure Service Fabric

Service Fabric Runtime and SDK Version :

Operating System :

Windows

Cluster Size :

Possible Workaround

@gkhanna79 gkhanna79 transferred this issue from microsoft/service-fabric-issues Apr 28, 2020
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