Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

The MD5 value specified in the request did not match with the MD5 value calculated by the server #1047

Open
zhongjohnson opened this issue Jun 30, 2021 · 1 comment

Comments

@zhongjohnson
Copy link

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the SDK was used?

v11.2.2

Which platform are you using? (ex: .NET Core 2.1)

.NET Core 3.1.404

What problem was encountered?

It throws exception occasionally, and no clue on how does it happen.
The exception detail:
The MD5 value specified in the request did not match with the MD5 value calculated by the server.

Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.10/System.Diagnostics.Tools.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.Azure.Storage.StorageException: The MD5 value specified in the request did not match with the MD5 value calculated by the server.
at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token) in /home/user/Downloads/azure-storage-net-11.2.2/Lib/ClassLibraryCommon/Core/Executor/Executor.cs:line 279 at Microsoft.Azure.Storage.Blob.CloudBlockBlob.UploadFromStreamAsyncHelper(Stream source, Nullable1 length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AggregatingProgressIncrementer progressIncrementer, CancellationToken cancellationToken) in /home/user/Downloads/azure-storage-net-11.2.2/Lib/ClassLibraryCommon/Blob/CloudBlockBlob.cs:line 846
...
Request Information
RequestID:ef7fe75c-801e-0026-7446-6d65e3000000
RequestDate:Wed, 30 Jun 2021 08:23:42 GMT
StatusMessage:The MD5 value specified in the request did not match with the MD5 value calculated by the server.
ErrorCode:Md5Mismatch
ErrorMessage:The MD5 value specified in the request did not match with the MD5 value calculated by the server.

Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in Microsoft.Azure.Storage.Common.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Azure.Storage.StorageException' in System.Private.CoreLib.dll
Microsoft.Azure.Storage.StorageException: The MD5 value specified in the request did not match with the MD5 value calculated by the server.
at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token) in /home/user/Downloads/azure-storage-net-11.2.2/Lib/ClassLibraryCommon/Core/Executor/Executor.cs:line 279 at Microsoft.Azure.Storage.Blob.CloudBlockBlob.UploadFromStreamAsyncHelper(Stream source, Nullable1 length, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AggregatingProgressIncrementer progressIncrementer, CancellationToken cancellationToken) in /home/user/Downloads/azure-storage-net-11.2.2/Lib/ClassLibraryCommon/Blob/CloudBlockBlob.cs:line 846
at Microsoft.Azure.Storage.Blob.CloudBlockBlob.UploadFromFileAsync(String path, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AggregatingProgressIncrementer progressIncrementer, CancellationToken cancellationToken) in /home/user/Downloads/azure-storage-net-11.2.2/Lib/ClassLibraryCommon/Blob/CloudBlockBlob.cs:line 1087
...
Request Information
RequestID:ef815617-801e-0026-2246-6d65e3000000
RequestDate:Wed, 30 Jun 2021 08:24:59 GMT
StatusMessage:The MD5 value specified in the request did not match with the MD5 value calculated by the server.
ErrorCode:Md5Mismatch
ErrorMessage:The MD5 value specified in the request did not match with the MD5 value calculated by the server.

How can we reproduce the problem in the simplest way?

Tt happens randomly

Have you found a mitigation/solution?

No

@belino
Copy link

belino commented Jul 25, 2022

It has been happening until today. I'm facing the weird behavior too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants