From 73f01cf21044159ebfd0d6e5b2eb10f02b557b11 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Mon, 28 Aug 2017 22:30:41 +0200 Subject: [PATCH] handle 504 overpass error code like 429 --- .../streetcomplete/data/osm/download/OverpassMapDataDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java index a73dfe8c59..3fce834424 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java +++ b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/OverpassMapDataDao.java @@ -61,7 +61,7 @@ public synchronized void get(final String query, MapDataWithGeometryHandler hand } catch(OsmApiException e) { - if(e.getErrorCode() == 429) + if(e.getErrorCode() == 429 || e.getErrorCode() == 504) throw new OsmTooManyRequestsException(e.getErrorCode(), e.getErrorTitle(), e.getDescription()); else throw e;