Forum Home › Forums › Runtime Bugs › Server Bugs › method gettrend returns error
- This topic has 3 replies, 2 voices, and was last updated 1 year, 6 months ago by
Mikhail.
-
AuthorPosts
-
April 28, 2024 at 1:39 pm #14477
ZeusParticipantHi,
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)April 29, 2024 at 11:55 am #14481
MikhailModeratorHi,
How many data points are expected to be returned?May 4, 2024 at 9:35 am #14489
ZeusParticipantthere are about 12,960,000 points data
May 6, 2024 at 9:29 am #14491
MikhailModeratorAccording to the application communication protocol, response length is limited. Data should be retrieved by several requests. Data streaming supported only for file operations.
-
AuthorPosts
- You must be logged in to reply to this topic.