Skip to content

Instantly share code, notes, and snippets.

@olegoid
Created January 20, 2020 17:54
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 olegoid/f426ea5f74eb9f5e145fd807e9bb5339 to your computer and use it in GitHub Desktop.
Save olegoid/f426ea5f74eb9f5e145fd807e9bb5339 to your computer and use it in GitHub Desktop.
Remote party closed the WebSocket connection without completing the close handshake
[xUnit.net 00:00:00.03] xUnit.net VSTest Adapter v2.4.1 (64-bit .NET Core 5.0.0)
[xUnit.net 00:00:02.08] Starting: System.Net.WebSockets.Client.Tests (parallel test collections = on, max threads = 8)
[xUnit.net 00:00:19.90] System.Net.WebSockets.Client.Tests.ConnectTest.ConnectInstagram_Success [FAIL]
[xUnit.net 00:00:19.90] System.Net.WebSockets.WebSocketException : The remote party closed the WebSocket connection without completing the close handshake.
[xUnit.net 00:00:19.90] ---- System.Exception : TryParseMessageHeaderFromReceiveBuffer
[xUnit.net 00:00:19.91] Stack Trace:
[xUnit.net 00:00:19.91] at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
[xUnit.net 00:00:19.91] /Users/olegoid/Projects/runtime/src/libraries/System.Net.WebSockets.Client/tests/ConnectTest.cs(99,0): at System.Net.WebSockets.Client.Tests.ConnectTest.ConnectInstagram_Success()
[xUnit.net 00:00:19.91] --- End of stack trace from previous location ---
[xUnit.net 00:00:19.91] ----- Inner Stack Trace -----
[xUnit.net 00:00:19.91] at System.Net.WebSockets.ManagedWebSocket.CloseXYZWithReceiveErrorAndThrowAsync(String exceptionSource, WebSocketCloseStatus closeStatus, WebSocketError error, Exception innerException)
[xUnit.net 00:00:19.91] at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment