method gettrend returns error

Forum Home Forums Runtime Bugs Server Bugs method gettrend returns error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14477
    Zeus
    Participant

    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)

    #14481
    Mikhail
    Moderator

    Hi,
    How many data points are expected to be returned?

    #14489
    Zeus
    Participant

    there are about 12,960,000 points data

    #14491
    Mikhail
    Moderator

    According to the application communication protocol, response length is limited. Data should be retrieved by several requests. Data streaming supported only for file operations.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.