EMODnet / emodnet.wfs

Access EMODnet Web Feature Service data through R
https://emodnet.github.io/emodnet.wfs/
Other
8 stars 4 forks source link

Error with a web service #121

Closed maelle closed 2 years ago

maelle commented 2 years ago
EMODnetWFS::emodnet_init_wfs_client(service = "seabed_habitats_general_datasets_and_products")
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
#> Loading IANA mime types...
#> No encoding supplied: defaulting to UTF-8.
#> ✖ WFS client creation failed.
#> ℹ Service: 'https://ows.emodnet-seabedhabitats.eu/geoserver/emodnet_open/wfs'
#> Error in curl::curl_fetch_memory(url, handle = handle): SSL certificate problem: certificate has expired

Created on 2022-08-30 with reprex v2.0.2

@salvafern who should be contacted this time?

cc @annakrystalli

maelle commented 2 years ago

It concerns two web services see table at the end of this reprex

services <- EMODnetWFS::emodnet_wfs()$service_name

check_service <- function(service_name) {
    service_try <- try(
        EMODnetWFS::emodnet_init_wfs_client(service = service_name),
        silent = TRUE
    )

    string <- if (inherits(service_try, "try-error")) {
        as.character(service_try)
    } else {
        ""
    }

    tibble::tibble(
        service = service_name,
        ok = !inherits(service_try, "try-error"),
        string = stringr::str_squish(string)
    )
}

service_statuses <- purrr::map_df(services, check_service)
#> Loading ISO 19139 XML schemas...
#> Loading ISO 19115 codelists...
#> Loading IANA mime types...
#> No encoding supplied: defaulting to UTF-8.
#> ✔ WFS client created successfully
#> ℹ Service: 'https://ows.emodnet-bathymetry.eu/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://geo.vliz.be/geoserver/Emodnetbio/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://geo.vliz.be/geoserver/Dataportal/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://geo-service.maris.nl/emodnet_chemistry/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://geo-service.maris.nl/emodnet_chemistry_p36/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://nodc.ogs.trieste.it/geoserver/Contaminants/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://www.ifremer.fr/services/wfs/emodnet_chemistry2'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/tno/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/ispra/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/gsi/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/bgr/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/gtk/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://drive.emodnet-geology.eu/geoserver/bgs/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://ows.emodnet-humanactivities.eu/wfs'
#> ℹ Version: '2.0.0'
#> ✔ WFS client created successfully
#> ℹ Service: 'https://geoserver.emodnet-physics.eu/geoserver/emodnet/wfs'
#> ℹ Version: '2.0.0'
#> ✖ WFS client creation failed.
#> ℹ Service: 'https://ows.emodnet-seabedhabitats.eu/geoserver/emodnet_open/wfs'
#> ✖ WFS client creation failed.
#> ℹ Service: 'https://ows.emodnet-seabedhabitats.eu/geoserver/emodnet_open_maplibrary/wfs'
knitr::kable(service_statuses)
service ok string
bathymetry TRUE
biology TRUE
biology_occurrence_data TRUE
chemistry_cdi_data_discovery_and_access_service TRUE
chemistry_cdi_distribution_observations_per_category_and_region TRUE
chemistry_contaminants TRUE
chemistry_marine_litter TRUE
geology_coastal_behavior TRUE
geology_events_and_probabilities TRUE
geology_marine_minerals TRUE
geology_sea_floor_bedrock TRUE
geology_seabed_substrate_maps TRUE
geology_submerged_landscapes TRUE
human_activities TRUE
physics TRUE
seabed_habitats_general_datasets_and_products FALSE Error in curl::curl_fetch_memory(url, handle = handle) : SSL certificate problem: certificate has expired
seabed_habitats_individual_habitat_map_and_model_datasets FALSE Error in curl::curl_fetch_memory(url, handle = handle) : SSL certificate problem: certificate has expired

Created on 2022-08-30 with reprex v2.0.2

bart-v commented 2 years ago

who should be contacted this time?

As always, the EMODnet central portal team. We're on it...

maelle commented 2 years ago

Thank you!

bart-v commented 2 years ago

OK, the HTTPS issue is fixed now

maelle commented 2 years ago

Thanks a ton!