Skip to content

Commit e357b0e

Browse files
authored
continue polling process for all non-API key related exceptions (#13)
1 parent b271c5f commit e357b0e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>cloud.eppo</groupId>
88
<artifactId>eppo-server-sdk</artifactId>
9-
<version>1.1.1</version>
9+
<version>1.1.2</version>
1010

1111
<name>${project.groupId}:${project.artifactId}</name>
1212
<description>Eppo Server-Side SDK for Java</description>

src/main/java/com/eppo/sdk/helpers/ExperimentConfigurationRequestor.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ public Optional<ExperimentConfigurationResponse> fetchExperimentConfiguration()
4242
if (statusCode == 401) { // unauthorized - invalid API key
4343
throw new InvalidApiKeyException("Unauthorized: invalid Eppo API key.");
4444
}
45-
} catch (HttpTimeoutException e) { // non-fatal error
46-
log.warn("Request time out while fetching experiment configurations: " + e.getMessage());
4745
} catch (InvalidApiKeyException e) {
4846
throw e;
49-
} catch (Exception e) { // fatal error that will stop the polling process
50-
throw new NetworkException("Unable to Fetch Experiment Configuration: " + e.getMessage());
47+
} catch (Exception e) {
48+
log.warn("Unable to Fetch Experiment Configuration: " + e.getMessage());
5149
}
5250

5351
return Optional.ofNullable(config);

0 commit comments

Comments
 (0)