Skip to content

Avoid HTTP ERROR 414: URI Too Long in osm_fetch_objects() by calls in batches #20

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

Merged
merged 2 commits into from
May 17, 2024

Conversation

jmaspons
Copy link
Collaborator

Maximize batch size to URIs <= 8213 characters as documented in the wiki

Tests work when running interactively but fail in R CMD check:

Error in `stop_request(req)`: An unexpected request was made:
GET https://master.apis.dev.openstreetmap.org/api/0.6/relations?relations=...

Expected mock file: osm.org/api/0.6/relations-13eee2.*

FIX #19

@jmaspons jmaspons merged commit b39a6e7 into main May 17, 2024
@jmaspons jmaspons deleted the fetch_obj_batches branch May 17, 2024 09:59
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

Successfully merging this pull request may close these issues.

Error in osm_get_objects()->osm_fetch_objects() with many osm_ids
1 participant