Bug 517484

Summary: Network error message while using reverse geocoding with OpenStreetMap.
Product: [Applications] digikam Reporter: Thomas Erlacher <erlacher.thomas>
Component: Geolocation-ReverseGeoCodingAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 9.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 9.1.0
Sentry Crash Report:
Attachments: Fehlermeldung

Description Thomas Erlacher 2026-03-12 21:40:07 UTC
Created attachment 190617 [details]
Fehlermeldung

Liebes DigiKam Team
Fehlermeldung (Foto) bei "Inverse Geokodierung durchführen". Wenn viele Fotos für die Inverse Geokodierung ausgewählt werden, dann bricht die Funktion nach einiger Zeit mit der Fehlermeldung ab. Falls die Funktion dann nochmals ausgeführt wird, dann kommt es immer sofort zum Abbruch.
Liebe Grüße und Danke 
Thomas
Comment 1 Maik Qualmann 2026-03-13 05:29:41 UTC
Der HTTP-Statuscode 429 „Too Many Requests“ bedeutet, das ein Client zu viele Anfragen geschickt hat und der Server weitere ablehnt, um sich vor Überlastung zu schützen. Bedenke, dass du einen kostenlosen Dienst in Anspruch nimmst. Sende weniger Anfragen. Wir können hier nichts machen, es gibt keinen anderen Dienst der kostenlos zur Verfügung steht.

The HTTP status code 429, "Too Many Requests" means that a client has sent too many requests, and the server is rejecting further requests to protect itself from overload. Remember that you are using a free service. Send fewer requests. There's nothing we can do about it; there are no other free services available.

Maik
Comment 2 caulier.gilles 2026-03-13 06:36:28 UTC
Git commit 0f34fed72f17f5b235f965403b453d299aa056b0 by Gilles Caulier.
Committed on 13/03/2026 at 06:35.
Pushed by cgilles into branch 'master'.

Add warning in the Geolocation Editor / Reverse Geocoding about the limitation with the remote service.

M  +4    -0    geolocation_editor/geoeditor_reverse.rst

https://invent.kde.org/documentation/digikam-doc/-/commit/0f34fed72f17f5b235f965403b453d299aa056b0
Comment 3 Thomas Erlacher 2026-03-13 06:48:55 UTC
Hatte noch nie ein Problem damit. Diese Meldung kommt jetzt aber schon nach 30 bis 50 Fotos. Auch unter unterschiedlichen IP Adressen. Das ist sehr eigenartig. Hat es seitens Digikam eine Änderung im Code gegeben, dass versehentlich eine Anfrage von einem Foto mehrfach geschickt wird?
Comment 4 caulier.gilles 2026-03-13 06:50:25 UTC
No this code do not change since a while. Probably OpenStreetMaps rules have changed in the server.
Comment 5 Maik Qualmann 2026-03-13 06:56:20 UTC
https://wiki.openstreetmap.org/wiki/Error_429

Maik
Comment 6 Thomas Erlacher 2026-03-13 06:58:45 UTC
Danke für die schnelle Info. Jetzt haben wir leider ein Problem, weil wir die Fotos nicht mehr mit einem Straßenname versehen können. Bitte bitte bitte integriert bei der linken Seitenleiste beim Register "Karte" einen Button damit man dort Koordinaten einfügen kann und die Karte dort hinzoom. Dann können wir unsere Projekte auf diesem Weg verwalten.
Comment 7 Maik Qualmann 2026-03-13 07:04:28 UTC
According to OpenStreetMap, a custom UserAgent string might help. Standard strings with "Mozilla/5.0" etc. are quickly blocked. The string should contain app details.

Maik
Comment 8 Maik Qualmann 2026-03-13 07:11:44 UTC
We are already using our own UserAgent string.

QString getUserAgentName()
{
    // Legacy user agent name. Do not change it.

    return QLatin1String("KIPI-Plugins GPSSync - kde-imaging@kde.org");
}

Maik
Comment 9 caulier.gilles 2026-03-24 20:16:20 UTC
*** Bug 518091 has been marked as a duplicate of this bug. ***