microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
372 stars 29 forks source link

SocketException: Cannot assign requested address #1325

Open jsheetzmt opened 3 weeks ago

jsheetzmt commented 3 weeks ago

Please provide us with the following information:

This issue is a: (mark with an x)

Issue description

Our .NET containers are getting SocketException Cannot assign requested address when making HTTP or gRPC requests. This only impacts us randomly where 100 requests go through fine and then a single request gets this error.

Steps to reproduce

  1. Unsure because the issue happens at random
jsheetzmt commented 1 week ago

What additional information can be provided @v-vish ?

v-vish commented 1 week ago

@jsheetzmt could you please confirm whether this is an app-to-app call or an external call?

jsheetzmt commented 1 week ago

I have examples of both.

app-to-app call using dapr: Status(StatusCode="Unavailable", Detail="Error connecting to subchannel.", DebugException="System.Net.Sockets.SocketException: Cannot assign requested address")

external HTTP call: Cannot assign requested address (api-gateway.ourdomain.com:443). The api-gateway subdomain is managed in Frontdoor

Also have many examples of transient errors between container apps and Azure SQL (similar to https://github.com/microsoft/azure-container-apps/issues/1338)