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

Randomly getting System.Net.Http.HttpRequestException: hostname nor servname provided, or not known (prd-services-apim.xcbsystems.com:443) #111058

Open
satya-prismhr opened this issue Jan 3, 2025 · 5 comments
Labels
area-System.Net needs-author-action An issue or pull request that requires more info or actions from the author. os-android untriaged New issue has not been triaged by the area owner

Comments

@satya-prismhr
Copy link

satya-prismhr commented Jan 3, 2025

Description

Randomly getting System.Net.Http.HttpRequestException: hostname nor servname provided, or not known (prd-services-apim.xcbsystems.com:443)

System.Net.Http.HttpRequestException: hostname nor servname provided, or not known (prd-tlmservices-apim.epaysystems.com:443)
 ---> System.Net.Sockets.SocketException (0xFFFDFFFF): hostname nor servname provided, or not known
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError , CancellationToken )
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 )
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs , ValueTask , CancellationToken )
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String , Int32 , HttpRequestMessage , Boolean , CancellationToken )
   Exception_EndOfInnerExceptionStack
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String , Int32 , HttpRequestMessage , Boolean , CancellationToken )
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage , Boolean , CancellationToken )
   at System.Net.Http.HttpConnectionPool.AddHttp2ConnectionAsync(QueueItem )
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.<WaitWithCancellationAsync>d__1[[System.Net.Http.Http2Connection, System.Net.Http, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage , Boolean , Boolean , CancellationToken )
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage , Boolean , CancellationToken )
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage , Boolean , CancellationToken )
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage , HttpCompletionOption , CancellationTokenSource , Boolean , CancellationTokenSource , CancellationToken )
   at TLM.MobileApp.Data.Core.ApiClient.ProcessApiGatewayRequestAsync(IRequest request, Int32 retryCount)

Reproduction Steps

No Reproduction steps, Its a random exception in httpclient

Expected behavior

Should work without exceptions

Actual behavior

Socket Exceptions are coming sometimes

Regression?

No response

Known Workarounds

No

Configuration

Which version of .NET is the code running on? : .NET 8 MAUI
What OS and version, and what distro if applicable? : Android

Other information

No response

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 3, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@wfurt
Copy link
Member

wfurt commented Jan 3, 2025

This looks like network or DNS server failure. Can you get traces from NameResolution @satya-prismhr ?

@wfurt wfurt added area-System.Net needs-author-action An issue or pull request that requires more info or actions from the author. and removed area-System.Net.Http labels Jan 3, 2025
Copy link
Contributor

This issue has been marked needs-author-action and may be missing some important information.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net needs-author-action An issue or pull request that requires more info or actions from the author. os-android untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants