diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Wikidata.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Wikidata.java index 04901f3c..398713b5 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Wikidata.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Wikidata.java @@ -317,14 +317,7 @@ public class Wikidata { LOGGER.error("sparql query failed, exhausted retries: " + e); throw e; } - if (e.getMessage() != null && e.getMessage().contains("GOAWAY")) { - try { - LOGGER.debug("GOAWAY received, waiting {} ms to give server some room", config.httpRetryWait()); - Thread.sleep(config.httpRetryWait()); - } catch (InterruptedException e2) { - Thread.currentThread().interrupt(); - } - } + Thread.sleep(config.httpRetryWait()); } }