| 69 | |
| 70 | template <typename Error> |
| 71 | inline bool IsConnectError(const Aws::Client::AWSError<Error>& error) { |
| 72 | if (error.ShouldRetry()) { |
| 73 | return true; |
| 74 | } |
| 75 | // Sometimes Minio may fail with a 503 error |
| 76 | // (exception name: XMinioServerNotInitialized, |
| 77 | // message: "Server not initialized, please try again") |
| 78 | if (error.GetExceptionName() == "XMinioServerNotInitialized") { |
| 79 | return true; |
| 80 | } |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | template <typename ErrorType> |
| 85 | inline std::optional<std::string> BucketRegionFromError( |
no test coverage detected