Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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