Replies

erdeizol
18 Nov 2022, 09:05

RE:

I've encountered a new exception stack trace, when calling Bars.LoadMoreHistory(); after a server reconnection:

cTrader.Automate.Host.Dispatcher.Exceptions.AutomateDispatcherAbortException: Exception of type 'cTrader.Automate.Host.Dispatcher.Exceptions.AutomateDispatcherAbortException' was thrown.
   at cTrader.Automate.Host.Dispatcher.AutomateTargetDispatcher.NestedLoop(CancellationToken cancellationToken, Boolean allowIdle)
   at cTrader.Automate.Host.Router.AutomateTargetRouter.Wait[TMessage](Predicate`1 predicate)
   at cTrader.Automate.Host.Router.AutomateTargetRouter.SendAndWait[TMessage](IAutomateMessage message, Predicate`1 predicate)
   at cTrader.Automate.Host.Runtime.Controllers.Chart.SmallChartSourceApiController.LoadMore(ChartSourceId chartSourceId)
   at cTrader.Automate.Host.Runtime.Api.Market.ChartSources.SmallWritableChartSource.LoadMoreHistory()
   at cTrader.Automate.Adapters.MarketApi.BarsAdapter.LoadMoreHistory()

The robot was hanging for days, onTick() not called since the Bars.LoadMoreHistory(); call. This exception was thrown when I stoped manually.


@erdeizol