-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
upstream connect error or disconnect/reset before headers. reset reason: protocol error #43874
Comments
Please share the server logs for this request. What was the response status code for 6.0? A 204? 204's aren't allowed to have a response body, and 7.0 enforces that. |
Hi @olizarevichroman. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@Tratcher Thanks! |
@Tratcher Also, what did you mean by Do you know how does |
Was that log from 6 or 7? I see a 204 with a Content-Length of 2. In 7.0 Kestrel will throw an exception if the status code is 204 and the app writes to the body. I don't see an exception in the logs, but I also don't see the 2 byte body being written. |
That's not ideal. The exception should make it change to a 500 at least. I think @adityamandaleeka was still cleaning that up. |
Sounds good |
This looks related to #43316 (comment). |
Thanks for contacting us. We're moving this issue to the |
Is there an existing issue for this?
Describe the bug
We've launched ASP NET Core 7 Preview app in a Kubernetes cluster with Envoy as a proxy.
When we send
PUT
requests and a response contains a body - we have502 upstream connect error or disconnect/reset before headers. reset reason: protocol error
forPUT
. ForGET
it works, forPUT
without a response body it also works.After downgrading to
NET 6
it worksExpected Behavior
Result status code should be 2xx
Steps To Reproduce
Send a
PUT
HTTP request to an endpoint that returns a result with a body.Exceptions (if any)
No response
.NET Version
7.0.0-preview.7.22375.6
Anything else?
ASP NET Core runtime version:
7.0.0-preview.7.22376.6
NET Core runtime version:
7.0.0-preview.7.22375.6
The text was updated successfully, but these errors were encountered: