[mob] Handle 401 during multipart failure

This commit is contained in:
Neeraj Gupta
2024-11-12 14:28:00 +05:30
parent b0674cd5f3
commit 306978291b

View File

@@ -148,6 +148,12 @@ class MultiPartUploader {
);
await _db.deleteMultipartTrack(localId);
}
if (e.response?.statusCode == 401) {
_logger.severe(
"Multipart upload not authorized ${multipartInfo.urls.objectKey}",
);
await _db.deleteMultipartTrack(localId);
}
rethrow;
}
}