Skip to main content

Hi,

Referring to this ticket:

We use this Javascript SDK function DataPointsAPI.retrieve retrieve the aggregated data points for multiple timeseries externalids with different granularities like 1min, 10 min. If the datapoints for multiple timeseries externalids goes beyond 10000, then SDK (internally API) throws this error 

{
    "error": {
        "code": 400,
        "message": "Sum of limits for aggregate data points can not exceed 10000"
    }
}

 

Is it possible to handle this scenario in SDK itself and returns the cursor accordingly. Instead of throwing an error, if the datapoints across timeseries external ids goes beyond 10000, then SDK could retry the API call with default limits and return the cursor. 

 

The another option could be to consider Limit as None like Python SDK and SDK does the required optimizations so client doesn’t need to handle many conditions. 

Be the first to reply!