better handling of rate limited API map calls and other API errors

* retry all unsuccessful map calls after waiting 8 seconds (spinner continues to indicate loading state)
* also logged-in users can be rate limited: add dedicated error message
* don't log users out when requests return 401/403 (except on the _get own user data_ request, which would indicate that the oauth token was revoked): it's better to show the error message if a legitimate api call was actually unauthorized

closes #10299
This commit is contained in:
Martin Raifer
2025-03-11 15:34:26 +01:00
parent 68eb90f665
commit 91aa85a1c0
7 changed files with 71 additions and 114 deletions

View File

@@ -596,6 +596,7 @@ en:
offline: The OpenStreetMap API is offline. Your edits are safe locally. Please come back later.
readonly: The OpenStreetMap API is currently read-only. You can continue editing, but must wait to save your changes.
rateLimit: The OpenStreetMap API is limiting anonymous connections. You can fix this by logging in.
rateLimited: The OpenStreetMap API is limiting your connection, please wait.
local_storage_full: You have made too many edits to back up. Consider saving your changes now.
retry: Retry
commit: