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

[BUG] getbb returns HTTP Error 502 from Nominatim #331

Open
mooibroekd opened this issue Sep 3, 2023 · 5 comments
Open

[BUG] getbb returns HTTP Error 502 from Nominatim #331

mooibroekd opened this issue Sep 3, 2023 · 5 comments

Comments

@mooibroekd
Copy link

mooibroekd commented Sep 3, 2023

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

@mpadge
Copy link
Member

mpadge commented Sep 4, 2023

Could be related to #405. Can you make sure you've got latest version (>= 0.2.5.2)? That should fix

@mooibroekd
Copy link
Author

mooibroekd commented Sep 4, 2023

Installed version is the one from CRAN and is listed as 0.2.5. I assume I need to install the development version?

@mpadge
Copy link
Member

mpadge commented Sep 4, 2023

Yep, remotes::install_github("ropensci/osmdata") should do the trick. Let me know

@mooibroekd
Copy link
Author

Yes, the development version fixes the problem. When will this be released on CRAN?

@mpadge
Copy link
Member

mpadge commented Sep 4, 2023

asap - i'll take this an incentive and endeavour to get it up this week. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants