The UK-AIR Sensor Observation Service API seems to have changed/issues when retrieving time series data.
Hence, the Air Quality Agent might need to be updated to avoid the following exception which started to occur recently:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/app/agent/datainstantiation/readings.py", line 256, in update_all_stations
updated_ts = add_all_readings_timeseries(query_endpoint, update_endpoint)
File "/app/agent/datainstantiation/readings.py", line 109, in add_all_readings_timeseries
updated_ts = add_readings_timeseries(query_endpoint=query_endpoint,
File "/app/agent/datainstantiation/readings.py", line 72, in add_readings_timeseries
ts_data = retrieve_timeseries_data_from_api(ts_ids=ids)
File "/app/agent/datainstantiation/readings.py", line 575, in retrieve_timeseries_data_from_api
raise APIException("Error while retrieving time series data from API.") from ex
agent.errorhandling.exceptions.APIException: Error while retrieving time series data from API.
The UK-AIR Sensor Observation Service API seems to have changed/issues when retrieving time series data. Hence, the Air Quality Agent might need to be updated to avoid the following exception which started to occur recently: