Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update air quality agent #1263

Open
markushofmeister opened this issue Jul 1, 2024 · 0 comments
Open

Update air quality agent #1263

markushofmeister opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@markushofmeister
Copy link
Collaborator

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.
@markushofmeister markushofmeister added bug Something isn't working enhancement New feature or request labels Jul 1, 2024
@ChungTingLao ChungTingLao self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants