Skip to content

Sometimes test fail for a specific radar not being available #112

Closed

Description

@bart1

The discussion here is an example for Sweden (https://github.com/aloftdata/getRad/actions/runs/17037693287/job/48468086663):

Hmm it seem part of the swedish radar network does not produce data:
This works: https://opendata-download-radar.smhi.se/api/version/latest/area/balsta/product/qcvol
While this radar has a 404: https://opendata-download-radar.smhi.se/api/version/latest/area/atvidaberg/product/qcvol
Maybe I will check if it is transient and retry later today?

Originally posted by @bart1 in #60

As it is the first time this happens lets keep an eye out if the problem is more frequent an in that case make the test fail gracefully without automatically skipping for permanent failures

Activity

  1. bart1 commented on Aug 20, 2025

    @bart1
    CollaboratorAuthor

    For sweden we can see when the radar is update: https://opendata-download-radar.smhi.se/api/version/latest/area/

    e.g.:

    httr2::request("https://opendata-download-radar.smhi.se/api/version/latest/area/") |>
      httr2::req_perform() |> httr2::resp_body_json() |> purrr::chuck("areas")  |> 
      purrr::map(~as.data.frame(.x))  |> dplyr::bind_rows() |> dplyr::filter(key=="atvidaberg") |> purrr::chuck("updated") |> lubridate::as_datetime()
    #> [1] "2025-08-18 08:50:18 UTC"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions