-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Labels
bugA bug or issue with App CenterA bug or issue with App CentertestRelated to the App Center Test serviceRelated to the App Center Test service
Description
What App Center service does this affect?
Xamarin.UITest
Describe the bug
When running a UITest, the following error happens, randomly, while others tests in the same test class pass:
Exception: System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error: ConnectFailure (Invalid arguments) ---> System.Net.Sockets.SocketException: Invalid arguments
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.Sockets.SocketTaskExtensions+<>c.<ConnectAsync>b__2_1 (System.IAsyncResult asyncResult) [0x00006] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <b4d1a66727f44ba888b54966284fabb4>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x0019b] in <118907f5eb5f4e538f3e3bdd8361378f>:0
--- End of inner exception stack trace ---
at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x00217] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.WebOperation.Run () [0x0009a] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <118907f5eb5f4e538f3e3bdd8361378f>:0
at System.Net.Http.HttpClientHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x002e7] in <6b8b04ed2efa45cfbebc3a7d31b3c9d4>:0
--- End of inner exception stack trace ---
at System.Net.Http.HttpClientHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00478] in <6b8b04ed2efa45cfbebc3a7d31b3c9d4>:0
at Xamarin.UITest.Shared.Http.HttpClient.SendData (System.String endpoint, System.String method, System.Net.Http.HttpContent content, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable`1[T] timeOut) [0x000c7] in <18ae7883e2424c558186d1d9edf9f14b>:0
at Xamarin.UITest.Shared.Http.HttpClient.Post (System.String endpoint, System.String arguments, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable`1[T] timeOut) [0x00014] in <18ae7883e2424c558186d1d9edf9f14b>:0
at Xamarin.UITest.Shared.Http.HttpClient.Post (System.String endpoint, System.Object arguments, Xamarin.UITest.Shared.Http.ExceptionPolicy exceptionPolicy, System.Nullable`1[T] timeOut) [0x00013] in <18ae7883e2424c558186d1d9edf9f14b>:0
at Xamarin.UITest.Android.AndroidGestures.Query[T] (Xamarin.UITest.Queries.AppTypedSelector`1[T] selector) [0x0001c] in <18ae7883e2424c558186d1d9edf9f14b>:0
at Xamarin.UITest.Android.AndroidApp+<>c__DisplayClass14_0`1[T].<Query>b__0 () [0x00017] in <18ae7883e2424c558186d1d9edf9f14b>:0
at Xamarin.UITest.Utils.ErrorReporting.With[T] (System.Func`1[TResult] func, System.Object[] args, System.String memberName) [0x0000e] in <18ae7883e2424c558186d1d9edf9f14b>:0
To Reproduce
No specific repro on how to get this.
The only part is the app is started as AttachToApp
Expected behavior
There should be no exception, since other tests pass a the same time.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS (Hosted macOS Agents)
Smartphone (please complete the following information):
- Device: Android simulator
- OS:
system-images;android-28;google_apis;x86
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA bug or issue with App CenterA bug or issue with App CentertestRelated to the App Center Test serviceRelated to the App Center Test service