iD icon indicating copy to clipboard operation
iD copied to clipboard

Consider less mysterious error message on too large bounding box

Open matkoniecz opened this issue 1 year ago • 2 comments

Description

Current message show to user who made overly large bbox seems quite mysterious to a new user.

Is it technically possible to replace

Changeset bounding box size limit exceeded.

with

Server returned status code 413

appearing on clicking message

by something such as

Your edit covers too large area, it is better to split edit in parts where editing places far away from each other.

?

(result of https://github.com/openstreetmap/openstreetmap-website/issues/4805#issuecomment-2182603310 testing)

Screenshots

screen02

matkoniecz avatar Jun 21 '24 12:06 matkoniecz

As far as I know, iD doesn’t customize any error message returned by the API. For example, it doesn’t attempt to localize the error message into the user’s preferred language. But presenting the error message is really a last resort anyways. By the time the user sees this error, there’s little they can do about it. If they’re lucky, the offending change is somewhere near the top of the undo stack, so they can undo their changes one at a time until the changeset saves. Or they can download the osmChange file locally and break it up using JOSM. This is unrealistic for the sort of user who doesn’t understand the error message.

If the goal is to make the user experience friendlier, then iD would need to prevent the user from expanding the changeset bbox before they make the change. This is one of the ideas proposed in #8590. Since the actual limit depends on the user account’s age and the thresholds are dynamically configurable on the server side, iD would need an upfront signal from the API about these limits, such as in the /capabilities response, which iD requests at launch.

However, my understanding is that these limits were implemented as a defense against vandalism, not to enforce good etiquette, as proposed in #8590. If we’re confident that these limits actually target vandals and that mappers in good faith are unlikely to hit this error, then I don’t see a stronger need to improve the user experience for this error than for any of the other errors the API can return.

1ec5 avatar Jun 22 '24 15:06 1ec5

In fact, I would consider a non-specific error message as a good catch-all case for anything user-facing error that's the result of a vandalism block being hit. Let's not guide potential bad actors here.

ZeLonewolf avatar Jun 22 '24 16:06 ZeLonewolf

In order to properly display translatable error messages, we would need a reliable way to match errors from the OSM API to actual error cases/messages.

What we could do is to add a link to a wiki page which would help users to find out what the different error codes and messages from the API mean.

tyrasd avatar Mar 11 '25 09:03 tyrasd

I will close it low priority one

matkoniecz avatar Sep 16 '25 10:09 matkoniecz

and hard to implement as there is no definitive list of errors that API can return, and if we have nice support for some and miss it for others it gets even more confusing to users when they run into unsupported one

also, this was not encountered in wild but in testing

and I have no obvious idea what to show to user to make it much less confusing to justify effort on entire new mechanism to catch and translate those errors

matkoniecz avatar Sep 16 '25 10:09 matkoniecz