Skip to content

Commit 49c3f58

Browse files
authored
Drop 500 from the retriable errorcode list (#576)
1 parent a8ca851 commit 49c3f58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/google/firebase/internal/ApiClientUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ApiClientUtils {
3434

3535
static final RetryConfig DEFAULT_RETRY_CONFIG = RetryConfig.builder()
3636
.setMaxRetries(4)
37-
.setRetryStatusCodes(ImmutableList.of(500, 503))
37+
.setRetryStatusCodes(ImmutableList.of(503))
3838
.setMaxIntervalMillis(60 * 1000)
3939
.build();
4040

src/test/java/com/google/firebase/internal/ApiClientUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testAuthorizedHttpClient() throws IOException {
6666
assertEquals(4, retryConfig.getMaxRetries());
6767
assertEquals(60 * 1000, retryConfig.getMaxIntervalMillis());
6868
assertFalse(retryConfig.isRetryOnIOExceptions());
69-
assertEquals(retryConfig.getRetryStatusCodes(), ImmutableList.of(500, 503));
69+
assertEquals(retryConfig.getRetryStatusCodes(), ImmutableList.of(503));
7070
}
7171

7272
@Test

0 commit comments

Comments
 (0)