Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@davidfowl
Created April 5, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidfowl/50125780269d0878e0ab80b6c68bec93 to your computer and use it in GitHub Desktop.
Save davidfowl/50125780269d0878e0ab80b6c68bec93 to your computer and use it in GitHub Desktop.
System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.Http.HttpRequestException: Invalid argument ---> System.Net.Sockets.SocketException: Invalid argument
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| --- End of inner exception stack trace ---
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
| at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
| at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
| at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
| at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
| at Microsoft.AspNetCore.Http.Connections.Client.Internal.WebSocketsTransport.StartAsync(Uri url, IDuplexPipe application, TransferFormat transferFormat, IConnection connection) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/WebSocketsTransport.cs:line 116
| at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartTransport(Uri connectUrl, HttpTransportType transportType, TransferFormat transferFormat) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/HttpConnection.cs:line 343
| at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/HttpConnection.cs:line 211
| at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/HttpConnection.cs:line 142
| at System.Threading.Tasks.ForceAsyncAwaiter.GetResult() in /Users/dfowler/dev/SignalR/src/Common/ForceAsyncAwaiter.cs:line 39
| at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/HttpConnection.cs:line 116
| at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.SignalR.Client.Core/HubConnection.cs:line 132
| at System.Threading.Tasks.ForceAsyncAwaiter.GetResult() in /Users/dfowler/dev/SignalR/src/Common/ForceAsyncAwaiter.cs:line 39
| at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.SignalR.Client.Core/HubConnection.cs:line 64
| at System.Threading.Tasks.TaskExtensions.OrTimeout(Task task, TimeSpan timeout, String memberName, String filePath, Nullable`1 lineNumber) in /Users/dfowler/dev/SignalR/test/Microsoft.AspNetCore.SignalR.Tests.Utils/TaskExtensions.cs:line 35
| at Microsoft.AspNetCore.SignalR.Client.FunctionalTests.HubConnectionTests.CanStartConnectionFromClosedEvent(String protocolName, HttpTransportType transportType, String path) in /Users/dfowler/dev/SignalR/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs:line 193 from test
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| --- End of inner exception stack trace ---
| at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask)
| at System.Threading.Tasks.ValueTask`1.get_Result()
| at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
| at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
| at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
| at System.Net.WebSockets.WebSocketHandle.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
| at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, CancellationToken cancellationToken)
| at Microsoft.AspNetCore.Http.Connections.Client.Internal.WebSocketsTransport.StartAsync(Uri url, IDuplexPipe application, TransferFormat transferFormat, IConnection connection) in /Users/dfowler/dev/SignalR/src/Microsoft.AspNetCore.Http.Connections.Client/Internal/WebSocketsTransport.cs:line 116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment