Skip to content

Commit

Permalink
fix: retry condition (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Sep 27, 2023
1 parent 581f264 commit 9ea91a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raiden/src/retry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ impl RetryStrategy for DefaultRetryStrategy {
RaidenError::InternalServerError(_)
| RaidenError::ProvisionedThroughputExceeded(_)
| RaidenError::RequestLimitExceeded(_)
// Sometimes I ran into `HttpDispatchError { message: "Error during dispatch: connection closed before message completed" }` and
// CredentialsError { message: "Request ID: Some(\"xxx\") Body: <ErrorResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\">\n <Error>\n <Type>Sender</Type>\n <Code>Throttling</Code>\n <Message>Rate exceeded</Message>\n </Error>\n <RequestId>xxx</RequestId>\n</ErrorResponse>\n" }
| RaidenError::HttpDispatch(_)
| RaidenError::Credentials(_)
// INFO: For now, return true, when unknown error detected.
// This is because, sometimes throttlingException is included in unknown error.
// please make more rigorous classification of errors.
Expand Down

0 comments on commit 9ea91a4

Please sign in to comment.