Description
Issue
This API call: getMeasurementData
may fail with this
error mentioned here: (failed)net::ERR_INCOMPLETE_CHUNKED_ENCODING
The reason for such an error is: backend is creating a huge measurement data object to return to the client. The
request timed out after 30 seconds with the error mentioned above.
The size of response can go unpredictably huge.
Solution
Split getMeasurementData
call into filtered API calls. Filters that can be applied are probe ids, start time and stop time.
To get the values for probe ids before getMeasurementData API call, we will need to pass an additional query parameter called optional fields = probes to get the probe ids in the getMeasurementById
call.
API reference
For filters on Measurement Result Request(getMeasurementData):
https://atlas.ripe.net/docs/apis/rest-api-manual/measurements/results
For query parameters on the Measure basic info request (getMeasurementById)
https://atlas.ripe.net/docs/apis/rest-api-manual/measurements/queryparameters