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

[BUG] WebSocketException #81

Open
HugoB07 opened this issue May 26, 2024 · 3 comments
Open

[BUG] WebSocketException #81

HugoB07 opened this issue May 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@HugoB07
Copy link

HugoB07 commented May 26, 2024

Describe the bug
Randomly I have a WebSocketException (all event stop working)

To Reproduce
Steps to reproduce the behavior:

Connect to an account
Wait
See the WebSocketException in the console

Error :

System.Net.WebSockets.WebSocketException` (0x80004005): The remote party closed the WebSocket connection without completing the close handshake.
   at System.Net.WebSockets.ManagedWebSocket.ThrowEOFUnexpected()
   at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TResult](Memory1 payloadBuffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at TikTokLiveSharp.Client.Socket.TikTokWebSocket.ReceiveMessage() in E:\LiveTok\LiveShow\TikTokLiveSharp\Client\Socket\TikTokWebSocket.cs:line 151
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived'
   at System.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
@HugoB07 HugoB07 added the bug Something isn't working label May 26, 2024
@Creat-coin
Copy link

I have a WebSockets error too!
WebSockets return 200 instead of expected 101

@HugoB07
Copy link
Author

HugoB07 commented May 27, 2024

Here its not the same error, here the error appended after the connection to the stream.

@mantotomato
Copy link

I have a WebSockets error too! WebSockets return 200 instead of expected 101

me too... have this issue been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants