Opened 16 years ago
Closed 9 years ago
#4783 closed enhancement (wontfix)
Update Data should warn if one of the bounds has grown beyond 50k items
| Reported by: | mk408 | Owned by: | mk408 |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | latest |
| Keywords: | splitting 50k update | Cc: | xeen |
Description (last modified by )
If a previous downloaded area (<bounds>) has, on the OSM server, grown to contain more than 50000 items, trying to update will fail due to the server returning an error that the requested download is too large.
A partial fix would be to continue with further requests, if there are any, and communicating the error to the user.
A complete fix would involve automatically splitting the area and retrying. Currently, I perform this manually by editing the .osm file.
Attachments (0)
Change History (13)
comment:1 by , 14 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 14 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
We had multiple requests for "splitting download" in the past. The idea of the server limits is to keep users from selecting way too large areas and thus stressing the server. JOSM already has some ways to prevent this (e.g. the update data function), but implementing a tiled download as you request would finally break the idea of download restrictions.
Until we have a really important use-case where also OSM server admins would agree this is a WONTFIX.
comment:3 by , 14 years ago
| Cc: | added |
|---|---|
| Keywords: | splitting added |
| Priority: | normal → minor |
| Resolution: | wontfix |
| Status: | closed → reopened |
| Summary: | Update Data fails if one of the bounds has grown beyond 50k items → Update Data should warn if one of the bounds has grown beyond 50k items |
| Type: | defect → enhancement |
While I agree with you, I doubt this ticket is fixed. If update data fails for that reason, we should announce that to the users and educate them. If we don’t, we’ll likely get further “implement splitting” tickets. However, as message like “Sorry, but your data set is too large. The server’s little mind can only handle that much without affecting other OSM users, so it kindly asks you to make smaller requests «insert donate link here»” might actually make a user change behavior instead of assuming it’s a bug.
I consider working on the bug; however I have a hard time to think of how to test this… it doesn’t sound to appealing to setup your own server and I don’t really want to send a lot of 50k+ requests to the server so it rejects me…
comment:4 by , 14 years ago
Simply use test API, see http://wiki.openstreetmap.org/wiki/API_v0.6#URL_.2B_Authentication.
comment:5 by , 14 years ago
thanks for the tip, but there doesn’t seem to be data anywhere in the Dev-API. Let’s hope that the “50k exceeded” and “bbox too large” have the same HTTP code…
comment:6 by , 14 years ago
Well, there actually is a proper error message for that. I suggest rewording it then, but this is open for discussion. The current wording is:
+ tr("The area you tried to download is too big or your request was too large."
+ "<br>Either request a smaller area or use an export file provided by the OSM community.")
My suggestion (<br>s have been added so that the lines are roughly equal in length, but we probably want to make that a real, auto-breaking paragraph…):
+ tr("Your download is either too large or contains too many items.<br>"
+ "The server’s little mind only handles that much, before being<br>"
+ "slow for other OSM users. It kindly asks you to make smaller<br>"
+ "requests. You can also <a href=\"http://donate.openstreetmap.org/\">donate to keep it running</a>.");
comment:8 by , 14 years ago
Different suggestion then:
Your download is either too large or contains too many items. The server can handle only that much before being slow for other OSM users. That’s why you may only make smaller requests. You can also donate to keep it running.
follow-up: 11 comment:9 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | reopened → needinfo |
Does the problem now happens with 10k objects? (since the API lowered the maximum changeset elements from 50k to 10k)
comment:10 by , 9 years ago
| Keywords: | 50k update added |
|---|
comment:11 by , 9 years ago
Replying to Don-vip:
Does the problem now happens with 10k objects? (since the API lowered the maximum changeset elements from 50k to 10k)
Also for downloads?
comment:13 by , 9 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | needinfo → closed |
org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>
Still 50k.



What is the actual use case for this? I believe it’s very rare that an area grows beyond 50k items if it’s been downloaded recently. Of course, the error should be reported properly, but auto-splitting seems like a way to circumvent the server’s limits -- I doubt the 50k items are really a problem, it’s more likely it was implemented to prevent users from downloading way-too-large areas.