Open tamland opened 1 year ago
Hi. I filed a bug item and will update soon.
Hi @tamland, I can not reproduce the issue. I have created a container app app1
returning data using transfer-encoding: chunked
, and inside another container app, I tried to call http://app1
, it seems everything is fine.
btw, may I confirm with you that is there any timeout settings for your app?
@njuCZ Your response size of 6019 bytes is probably too small to trigger this. We are seeing the issue on requests that takes anything between 0 and a few seconds, so it should not be related to timeouts in the application.
@tamland Thanks for your info, I can repro now, investigating
@njuCZ @torosent Did you have any update on this?
The last update on this was @zhenqxuMSFT investigating the issue and opening https://github.com/envoyproxy/envoy/issues/28329 as a result of what he was seeing.
@ahmelsayed Thank you. I'll follow the envoy issue
Hey! Could we add a mention of this to the Container Apps documentation? We just spent a week trying to debug this issue and now that we found out the root cause I was able to find this issue. It would be nice to add a mention to the container apps docs that you can't use connection: close
with transfer-encoding: chunked
when working with container apps.
I'll add a search term I used here so maybe another unlucky soul finds this a bit faster:
org.apache.http.TruncatedChunkException: Truncated chunk (expected size: 32,760; actual size: 31,835)
AxiosError: maxContentLength size of -1 exceeded
curl: (18) transfer closed with outstanding read data remaining
This issue is a: (mark with an x)
Issue description
When calling an app through
http://{appName}
as described in https://github.com/microsoft/azure-container-apps/issues/473 we are experiencing that the connection is often unexpectedly closed. Here's an example calling the app with curl:The issue appears to be related to the chunked transfer encoding and be timing/size based as it does not happen on every call. Other clients than curl returns similar issue ("request aborted" etc)
I addition, this issue does not to occur when calling the app through the FQDN, only through
http://{appName}
as seen here:Since this issue does not occur when using FQDN, nor on other platforms such as Azure Container Instances, we believe the issue is related to ACA.
Steps to reproduce
transfer-encoding: chunked
.http://{appName}
endpoint with the above curl command repeatedly.Expected behavior [What you expected to happen.]
Actual behavior [What actually happened.]
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Ex. Did this issue occur in the CLI or the Portal?