We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eced0d3 commit 91cee0fCopy full SHA for 91cee0f
src/main/java/com/mindee/AsyncPollingOptions.java
@@ -29,6 +29,6 @@ private AsyncPollingOptions(
29
) {
30
this.initialDelaySec = initialDelaySec == null ? 2.0 : initialDelaySec;
31
this.intervalSec = intervalSec == null ? 1.5 : intervalSec;
32
- this.maxRetries = maxRetries == null ? 30 : maxRetries;
+ this.maxRetries = maxRetries == null ? 40 : maxRetries;
33
}
34
src/main/java/com/mindee/MindeeClient.java
@@ -380,7 +380,7 @@ private <T extends Inference> AsyncPredictResponse<T> enqueueAndParse(
380
retryCount++;
381
Thread.sleep(intervalSec);
382
383
- throw new RuntimeException("Max retries exceeded. Failed to get the document.");
+ throw new RuntimeException("Max retries exceeded: " + retryCount +". Failed to get the document.");
384
385
386
/**
0 commit comments