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

"❓️ Overpass data is incomplete: 1 != 2 (x2)" #22

Open
matkoniecz opened this issue Dec 26, 2023 · 2 comments
Open

"❓️ Overpass data is incomplete: 1 != 2 (x2)" #22

matkoniecz opened this issue Dec 26, 2023 · 2 comments
Labels
bug Something isn't working NextGen This issue will be resolved with OpenStreetMap-NG

Comments

@matkoniecz
Copy link

On trying to revert https://www.openstreetmap.org/changeset/145391818 I get

🔒️ Logging in to OpenStreetMap
👤 Welcome, Mateusz Konieczny!
☁️ Downloading changeset 145391818
[1/?] OpenStreetMap …
[1/15] OpenStreetMap: 23 elements
[2/15] Overpass (14 partitions, this may take a while) …
[2/15] Retrying …
❓️ Overpass data is incomplete: 1 != 2 (x2)
🏁 Total time: 1.4 sec
Exit code: 255
@Zaczero Zaczero added the bug Something isn't working label Dec 26, 2023
@Zaczero
Copy link
Owner

Zaczero commented Dec 26, 2023

The Overpass API cannot fetch the complete edit history for elements edited multiple times within the same second.

For instance, when an element is created and modified simultaneously, like this:
image

Requesting version 1 returns empty results:
image

One solution could be to silently ignore such issues (or workaround them by using some alternative logic), but I prefer addressing these problems at their root to ensure reliable reverts. Another approach is to await OSM-NG, which will offer an alternative method for querying element history, eliminating dependency on Overpass and significantly improving efficiency. I'll implement the second solution, but it will require some additional time. You can track the NG development progress at https://github.com/Zaczero/openstreetmap-ng.

@Zaczero Zaczero added the NextGen This issue will be resolved with OpenStreetMap-NG label Dec 26, 2023
@matkoniecz
Copy link
Author

Even giving more clear error message would help here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NextGen This issue will be resolved with OpenStreetMap-NG
Projects
None yet
Development

No branches or pull requests

2 participants