osmdata icon indicating copy to clipboard operation
osmdata copied to clipboard

[BUG] getbb returns HTTP Error 502 from Nominatim

Open mooibroekd opened this issue 10 months ago • 5 comments

I cannot get getbb to work correctly as it returns a 502 error. I am also not sure if it is related to ports being blocked or not being accessible, so I would appreciate if someone else could confirm.

library(osmdata)
#> Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright
bb <- getbb("Barcelona")
#> Error in `httr2::req_perform()`:
#> ! HTTP 502 Bad Gateway.
#> Backtrace:
#>     ▆
#>  1. └─osmdata::getbb("Barcelona")
#>  2.   └─osmdata:::get_nominatim_query(...)
#>  3.     └─httr2::req_perform(req)
#>  4.       └─httr2:::resp_abort(resp, error_body(req, resp), call = error_call)
#>  5.         └─rlang::abort(...)

Created on 2023-09-03 with reprex v2.0.2

mooibroekd avatar Sep 03 '23 19:09 mooibroekd