We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d44bcd commit 50dd0a4Copy full SHA for 50dd0a4
Sources/SotoCore/Middleware/Middleware/RetryMiddleware.swift
@@ -29,6 +29,10 @@ struct RetryMiddleware: AWSMiddlewareProtocol {
29
try Task.checkCancellation()
30
return try await next(request, context)
31
} catch {
32
+ // If request is streaming then do not allow a retry
33
+ if request.body.isStreaming {
34
+ throw error
35
+ }
36
// If I get a retry wait time for this error then attempt to retry request
37
if case .retry(let retryTime) = self.retryPolicy.getRetryWaitTime(error: error, attempt: attempt) {
38
context.logger.trace("Retrying request", metadata: [
0 commit comments