mehtadone / PTFeeder

Official GitHub for ProfitTrailer's best buddy, PT Feeder. Be sure to visit their GitHub too.
https://wiki.ptfeeder.co/
182 stars 33 forks source link

feeder hang 2 times during binance heavy load, Unhandled Exception #129

Closed determo13 closed 6 years ago

determo13 commented 6 years ago

going back to more stable version, this is exception below happens 2 times.

Unhandled Exception: System.Net.Http.HttpRequestException: An error occurred whi le sending the request. ---> System.Net.Http.WinHttpException: A connection with the server could not be established at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.RendezvousAwaitable1.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAw aiter.GetResult() at System.Net.Http.HttpClient.d58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at Binance.Api.BinanceHttpClient.d25.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at Binance.Api.BinanceApi.d__26.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at services.services.BinanceWebsocketService.Struct11.MoveNext() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state) at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action ac tion, Boolean allowInlining, Task& currentTask) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state) at System.Threading.ThreadPoolWorkQueue.Dispatch()

mehtadone commented 6 years ago

See https://support.binance.com/hc/en-us/articles/360000713851

determo13 commented 6 years ago

yeah but that doesn't mean it should exit with exception is it? if connections drops same thing happens...

mehtadone commented 6 years ago

Ahh I didn't realise it exited on a connection drop. Yep it shouldnt do that.

mehtadone commented 6 years ago

@determo13 can you attach your full log file?

determo13 commented 6 years ago

Sorry mate I've removed it and using old version now, you can simulate error by running it and then disabling internet connection.

mehtadone commented 6 years ago

OK, guessing your Linux and not Windows with a recycling bin?

determo13 commented 6 years ago

Hi just done another test, here is the log file:

PTFeeder-20180208.log

mehtadone commented 6 years ago

Fixed in 1.6