Skip to content

Commit 1fdc35b

Browse files
authored
fix(DataStore): retry on URLError.dataNotAllowed (#1791)
1 parent 6fe21b6 commit 1fdc35b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AmplifyPlugins/DataStore/AWSDataStoreCategoryPlugin/Sync/RequestRetryablePolicy.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class RequestRetryablePolicy: RequestRetryable {
3737
.dnsLookupFailed,
3838
.cannotConnectToHost,
3939
.cannotFindHost,
40-
.timedOut:
40+
.timedOut,
41+
.dataNotAllowed:
4142
let waitMillis = retryDelayInMillseconds(for: attemptNumber)
4243
return RequestRetryAdvice(shouldRetry: true, retryInterval: .milliseconds(waitMillis))
4344
default:

0 commit comments

Comments
 (0)