Hi,
I am trying to get a long peroid data by method gettrend such as three months.
The server shows error info below.
My writting peroid in influxdb is 1 second.
I tested it. It can handle five days data. When i make it longer there will come error.
How to make the method can handle long period and the client can get data from server without limit?
System.AggregateException: One or more errors occurred. (A task was canceled.)
—> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Scada.Server.Modules.ModArcInfluxDb.Logic.InfluxHAL.GetFirstTrend(TimeRange timeRange, Int32[] cnlNums)
at Scada.Server.Engine.ArchiveHolder.GetTrends(Int32 archiveBit, TimeRange timeRange, Int32[] cnlNums)
at Scada.Server.Engine.ServerListener.GetTrends(ConnectedClient client, DataPacket request)
at Scada.Server.ListenerBase.ProcessRequest(ConnectedClient client, DataPacket request)
at Scada.Server.ListenerBase.ReceiveData(ConnectedClient client)
at Scada.Server.ListenerBase.ClientExecute(Object clientArg)
— End of stack trace from previous location —
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Scada.Server.Modules.ModArcInfluxDb.Logic.InfluxHAL.GetFirstTrend(TimeRange timeRange, Int32[] cnlNums)
at Scada.Server.Engine.ArchiveHolder.GetTrends(Int32 archiveBit, TimeRange timeRange, Int32[] cnlNums)