socket.io-client-csharp icon indicating copy to clipboard operation
socket.io-client-csharp copied to clipboard

The process was terminated due to an unhandled exception

Open ankuratmango opened this issue 1 year ago • 0 comments

using version 3.0.3

I am experiencing an unhandled exception which, as per my understanding, occurs when a task is cancelled before it is completed. However, in my code, I am not cancelling any tasks. I have added try-catch blocks and multiple handlers, but I am still unable to find the issue. The crash happens randomly and there are no fixed steps leading up to it.

crash happen after 2-3 hrs of running connection properly

Application: AlgoOrderPlacement.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Threading.Tasks.TaskCanceledException at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at SocketIOClient.Transport.HttpTransport+d__13.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at SocketIOClient.Transport.TransportRouter+d__43.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at SocketIOClient.Transport.TransportRouter+d__41.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at SocketIOClient.SocketIO+d__81.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at SocketIOClient.SocketIO+d__81.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at SocketIOClient.SocketIO+d__105.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()

ankuratmango avatar May 07 '24 01:05 ankuratmango