Open kevin-miller-13 opened 1 year ago
Can you be more specific about how this error occurs, e.g., which SDK you use and the full stack trace?
Sure, sorry should have done so already:
CODE I RAN: GetObjectRequest request = new GetObjectRequest { BucketName = "frombucket",//frombucketName, Key = "customfilename111" }; var response = _s3ProxyClient.S3Proxyclient.GetObjectAsync(request).GetAwaiter().GetResult();
SDK : AWSSDK.S3 (3.7.205.3)
ERROR IS HERE (Think it's thrown because of the non even ETAG (17hex chars) returned by Azure):
STACK TRACE (from postman) :
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'hex')
at Amazon.Util.AWSSDKUtils.HexStringToBytes(String hex)
at Amazon.S3.Internal.AmazonS3ResponseHandler.ProcessResponseHandlers(IExecutionContext executionContext)
at Amazon.S3.Internal.AmazonS3ResponseHandler.PostInvoke(IExecutionContext executionContext)
at Amazon.S3.Internal.AmazonS3ResponseHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.Signer.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.S3.Internal.AmazonS3ExceptionHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext)
at MyWebApp.Classes.CloudService.DownloadDocumentByNameAsync(String name, Boolean shouldThrow) in C:\Temp\Kubernetes3\KubernetesTestApp\Classes\CloudService.cs:line 59
at TestStorageApp.Controllers.S3ProxyController.Download() in C:\Temp\Kubernetes3\KubernetesTestApp\S3ProxyController.cs:line 36
at Microsoft.Extensions.Internal.ObjectMethodExecutor.<>cDisplayClass33_0.
Accept: / Host: localhost:5226 User-Agent: PostmanRuntime/7.32.3 Accept-Encoding: gzip, deflate, br Cache-Control: no-cache Content-Type: multipart/form-data; boundary=--------------------------681190203900673980201566 Content-Length: 175 Postman-Token: c95945f4-c08f-49f8-8d87-cfee5b9efc91
@gaul I have same exception occur, and when I try azureblob-sdk, it behaves the same. Will it be repaired in the future?
When I make a call to retrieve an Azure blob I get : "Specified argument was out of the range of valid values. (Parameter 'hex') at Amazon.Util.AWSSDKUtils.HexStringToBytes(String hex)"
Upon investigation I traced it to the amazons3client checking for an Etag that should have an even number of hex digits.
Help???