-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
HTTP service unavailable #95
Comments
Same issue here. countries <- gisco_get_countries(country = countries_names, year = "2020", resolution = "01") When i try to run this code for the 28 countries in my country_names vector, the same error as above arises for three countries (China, India and United Kingdom). |
Same issue here: HTTP Status Code: 503 - Service Unavailable url Please download manually. If you think this is a bug please consider opening an issue on https://github.com/ropengov/giscoR/issues |
same here. |
I have the same issue. Does anyone know a workaround? |
Sometimes these errors are from the server side, not from the package itself. I think it is solved now, can you confirm? Reprex: library(giscoR)
library(dplyr) gisco_get_countries(
year = 2020, resolution = 10,
epsg = 4326, cache_dir = tempdir()
)
#> Simple feature collection with 257 features and 11 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -180 ymin: -89.9 xmax: 180 ymax: 83.65872
#> Geodetic CRS: WGS 84
#> First 10 features:
#> CNTR_ID NAME_GERM CNTR_NAME
#> 1 AD Andorra Andorra
#> 2 AE Vereinigten Arabischen Emirate الإمارات العربية المتحدة
#> 3 AF Afghanistan افغانستان-افغانستان
#> 4 AG Antigua und Barbuda Antigua and Barbuda
#> 5 AI Anguilla Anguilla
#> 6 AL Albanien Shqipëria
#> 7 AM Armenien Հայաստան
#> 8 AO Angola Angola
#> 9 AR Argentinien Argentina
#> 10 AS Amerikanisch-Samoa American Samoa-Sāmoa Amelika
#> ISO3_CODE CAPT NAME_ENGL NAME_FREN
#> 1 AND Andorra la Vella Andorra Andorre
#> 2 ARE Abu Dhabi United Arab Emirates Émirats arabes unis
#> 3 AFG Kabul Afghanistan Afghanistan
#> 4 ATG St John's Antigua and Barbuda Antigua-et-Barbuda
#> 5 AIA The Valley Anguilla Anguilla
#> 6 ALB Tirana Albania Albanie
#> 7 ARM Yerevan Armenia Arménie
#> 8 AGO Luanda Angola Angola
#> 9 ARG Buenos Aires Argentina Argentine
#> 10 ASM Pago Pago American Samoa Samoa américaines
#> SVRG_UN EU_STAT CC_STAT EFTA_STAT
#> 1 UN Member State F F F
#> 2 UN Member State F F F
#> 3 UN Member State F F F
#> 4 UN Member State F F F
#> 5 UK Non-Self-Governing Territory F F F
#> 6 UN Member State F T F
#> 7 UN Member State F F F
#> 8 UN Member State F F F
#> 9 UN Member State F F F
#> 10 US Non-Self-Governing Territory F F F
#> geometry
#> 1 MULTIPOLYGON (((1.53521 42....
#> 2 MULTIPOLYGON (((56.1464 25....
#> 3 MULTIPOLYGON (((71.28622 38...
#> 4 MULTIPOLYGON (((-61.70749 1...
#> 5 MULTIPOLYGON (((-63.08349 1...
#> 6 MULTIPOLYGON (((19.75862 42...
#> 7 MULTIPOLYGON (((44.94132 41...
#> 8 MULTIPOLYGON (((13.47062 -5...
#> 9 MULTIPOLYGON (((-66.04926 -...
#> 10 MULTIPOLYGON (((-169.4544 -... countries_names <- c("China", "India", "United Kingdom")
gisco_get_countries(
country = countries_names, year = "2020",
resolution = "01",
cache_dir = tempdir()
)
#> Simple feature collection with 3 features and 11 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -8.647188 ymin: 6.755997 xmax: 134.7797 ymax: 60.84522
#> Geodetic CRS: WGS 84
#> ISO3_CODE CAPT CNTR_NAME CNTR_ID NAME_GERM CC_STAT
#> 1 CHN Beijing 中國 CN China F
#> 2 IND New Delhi India-भारत IN Indien F
#> 3 GBR London United Kingdom UK Vereinigtes Königreich F
#> EU_STAT NAME_ENGL EFTA_STAT SVRG_UN NAME_FREN
#> 1 F China F UN Member State Chine
#> 2 F India F UN Member State Inde
#> 3 F United Kingdom F UN Member State Royaume-Uni
#> geometry
#> 1 MULTIPOLYGON (((123.4666 53...
#> 2 MULTIPOLYGON (((91.93828 23...
#> 3 MULTIPOLYGON (((-3.40836 58... giscoR::gisco_get_nuts(
year = "2021", resolution = "3",
nuts_level = "0", cache_dir = tempdir()
) %>%
sf::st_transform(4326)
#> Simple feature collection with 37 features and 9 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -63.15176 ymin: -21.38696 xmax: 55.83509 ymax: 80.83427
#> Geodetic CRS: WGS 84
#> First 10 features:
#> NUTS_ID LEVL_CODE URBN_TYPE CNTR_CODE NAME_LATN
#> 1 BG 0 0 BG Bulgaria
#> 2 CH 0 0 CH Schweiz/Suisse/Svizzera
#> 3 AL 0 0 AL Shqipëria
#> 4 CZ 0 0 CZ Česko
#> 5 BE 0 0 BE Belgique/België
#> 6 AT 0 0 AT Österreich
#> 7 DE 0 0 DE Deutschland
#> 8 CY 0 0 CY Kýpros
#> 9 DK 0 0 DK Danmark
#> 10 EE 0 0 EE Eesti
#> NUTS_NAME MOUNT_TYPE COAST_TYPE geo
#> 1 България 0 0 BG
#> 2 Schweiz/Suisse/Svizzera 0 0 CH
#> 3 Shqipëria 0 0 AL
#> 4 Česko 0 0 CZ
#> 5 Belgique/België 0 0 BE
#> 6 Österreich 0 0 AT
#> 7 Deutschland 0 0 DE
#> 8 Κύπρος 0 0 CY
#> 9 Danmark 0 0 DK
#> 10 Eesti 0 0 EE
#> geometry
#> 1 MULTIPOLYGON (((22.97854 43...
#> 2 MULTIPOLYGON (((8.567406 47...
#> 3 MULTIPOLYGON (((19.75089 42...
#> 4 MULTIPOLYGON (((14.37233 51...
#> 5 MULTIPOLYGON (((4.83904 51....
#> 6 MULTIPOLYGON (((15.14986 48...
#> 7 MULTIPOLYGON (((8.635926 54...
#> 8 MULTIPOLYGON (((33.77666 34...
#> 9 MULTIPOLYGON (((15.19441 55...
#> 10 MULTIPOLYGON (((25.77586 59... Created on 2024-09-23 with reprex v2.1.1 Session infosessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.4.1 (2024-06-14)
#> os Ubuntu 20.04.6 LTS
#> system x86_64, linux-gnu
#> ui X11
#> language (EN)
#> collate C.UTF-8
#> ctype C.UTF-8
#> tz UTC
#> date 2024-09-23
#> pandoc 3.1.1 @ /usr/lib/rstudio-server/bin/quarto/bin/tools/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> class 7.3-22 2023-05-03 [2] CRAN (R 4.4.1)
#> classInt 0.4-10 2023-09-05 [1] RSPM (R 4.4.0)
#> cli 3.6.3 2024-06-21 [1] RSPM (R 4.4.0)
#> countrycode 1.6.0 2024-03-22 [1] RSPM (R 4.4.0)
#> DBI 1.2.3 2024-06-02 [1] RSPM (R 4.4.0)
#> digest 0.6.37 2024-08-19 [1] RSPM (R 4.4.0)
#> dplyr * 1.1.4 2023-11-17 [1] RSPM (R 4.4.0)
#> e1071 1.7-16 2024-09-16 [1] RSPM (R 4.4.0)
#> evaluate 1.0.0 2024-09-17 [1] RSPM (R 4.4.0)
#> fansi 1.0.6 2023-12-08 [1] RSPM (R 4.4.0)
#> fastmap 1.2.0 2024-05-15 [1] RSPM (R 4.4.0)
#> fs 1.6.4 2024-04-25 [1] RSPM (R 4.4.0)
#> generics 0.1.3 2022-07-05 [1] RSPM (R 4.4.0)
#> geojsonsf 2.0.3 2022-05-30 [1] RSPM (R 4.4.0)
#> giscoR * 0.6.0 2024-09-23 [1] local
#> glue 1.7.0 2024-01-09 [1] RSPM (R 4.4.0)
#> htmltools 0.5.8.1 2024-04-04 [1] RSPM (R 4.4.0)
#> KernSmooth 2.23-24 2024-05-17 [2] CRAN (R 4.4.1)
#> knitr 1.48 2024-07-07 [1] RSPM (R 4.4.0)
#> lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.4.0)
#> magrittr 2.0.3 2022-03-30 [1] RSPM (R 4.4.0)
#> pillar 1.9.0 2023-03-22 [1] RSPM (R 4.4.0)
#> pkgconfig 2.0.3 2019-09-22 [1] RSPM (R 4.4.0)
#> proxy 0.4-27 2022-06-09 [1] RSPM (R 4.4.0)
#> R6 2.5.1 2021-08-19 [1] RSPM (R 4.4.0)
#> Rcpp 1.0.13 2024-07-17 [1] RSPM (R 4.4.0)
#> reprex 2.1.1 2024-07-06 [1] RSPM (R 4.4.0)
#> rlang 1.1.4 2024-06-04 [1] RSPM (R 4.4.0)
#> rmarkdown 2.28 2024-08-17 [1] RSPM (R 4.4.0)
#> rstudioapi 0.16.0 2024-03-24 [1] RSPM (R 4.4.0)
#> s2 1.1.7 2024-07-17 [1] RSPM (R 4.4.0)
#> sessioninfo 1.2.2 2021-12-06 [1] RSPM (R 4.4.0)
#> sf 1.0-16 2024-03-24 [1] RSPM (R 4.4.0)
#> tibble 3.2.1 2023-03-20 [1] RSPM (R 4.4.0)
#> tidyselect 1.2.1 2024-03-11 [1] RSPM (R 4.4.0)
#> units 0.8-5 2023-11-28 [1] RSPM (R 4.4.0)
#> utf8 1.2.4 2023-10-22 [1] RSPM (R 4.4.0)
#> vctrs 0.6.5 2023-12-01 [1] RSPM (R 4.4.0)
#> withr 3.0.1 2024-07-31 [1] RSPM (R 4.4.0)
#> wk 0.9.3 2024-09-06 [1] RSPM (R 4.4.0)
#> xfun 0.47 2024-08-17 [1] RSPM (R 4.4.0)
#> yaml 2.3.10 2024-07-26 [1] RSPM (R 4.4.0)
#>
#> [1] /cloud/lib/x86_64-pc-linux-gnu-library/4.4
#> [2] /opt/R/4.4.1/lib/R/library
#>
#> ────────────────────────────────────────────────────────────────────────────── |
It works for me now, yeah. Thanks! |
I have the same issue as of today:
|
I have the same issue as of today with accessing nuts3 level information
|
Attempts to use gisco_get_countries to get a world shape return this error:
HTTP Status Code: 503 - Service Unavailable
url
https://gisco-services.ec.europa.eu/distribution/v2/countries/geojson/CNTR_RG_10M_2020_4326.geojson not reachable.
Please download manually. If you think this is a bug please consider opening an issue on https://github.com/ropengov/giscoR/issues
Returning
NULL
The text was updated successfully, but these errors were encountered: