diff --git a/src/main/java/com/mindee/AsyncPollingOptions.java b/src/main/java/com/mindee/AsyncPollingOptions.java index 23390af69..5039eb2dc 100644 --- a/src/main/java/com/mindee/AsyncPollingOptions.java +++ b/src/main/java/com/mindee/AsyncPollingOptions.java @@ -29,6 +29,6 @@ private AsyncPollingOptions( ) { this.initialDelaySec = initialDelaySec == null ? 2.0 : initialDelaySec; this.intervalSec = intervalSec == null ? 1.5 : intervalSec; - this.maxRetries = maxRetries == null ? 30 : maxRetries; + this.maxRetries = maxRetries == null ? 40 : maxRetries; } } diff --git a/src/main/java/com/mindee/MindeeClient.java b/src/main/java/com/mindee/MindeeClient.java index a4ae15dd2..1ee0060cf 100644 --- a/src/main/java/com/mindee/MindeeClient.java +++ b/src/main/java/com/mindee/MindeeClient.java @@ -380,7 +380,7 @@ private AsyncPredictResponse enqueueAndParse( retryCount++; Thread.sleep(intervalSec); } - throw new RuntimeException("Max retries exceeded. Failed to get the document."); + throw new RuntimeException("Max retries exceeded: " + retryCount +". Failed to get the document."); } /**