Skip to content

ImageProcessor not working with v3.0.1, but working with v2.0.1 #202

@christophborndigital

Description

@christophborndigital

We've used this package on a number of projects, and added it to another one a few days ago. It took me a rather long time today to figure out why ImageProcessor wasn't working. After lots of comparing configs and updating Azure packages, I eventually started downgrading packages and found that it worked with v2.0.1.

On 3.0.1, images are still served, but ImageProcessor isn't resizing them. I see the following exceptions in the Umbraco logs:

Exception

Azure.RequestFailedException: Service request failed.

Status: 404 (The specified blob does not exist.)

ErrorCode: BlobNotFound



Headers:
Transfer-Encoding: chunked
x-ms-version: 2020-10-02
x-ms-error-code: BlobNotFound
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0


   at Azure.Storage.Blobs.BlobRestClient.GetProperties(String snapshot, String versionId, Nullable`1 timeout, String leaseId, String encryptionKey, String encryptionKeySha256, Nullable`1 encryptionAlgorithm, Nullable`1 ifModifiedSince, Nullable`1 ifUnmodifiedSince, String ifMatch, String ifNoneMatch, String ifTags, CancellationToken cancellationToken)

   at Azure.Storage.Blobs.Specialized.BlobBaseClient.<GetPropertiesInternal>d__110.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Azure.Storage.Blobs.Specialized.BlobBaseClient.GetProperties(BlobRequestConditions conditions, CancellationToken cancellationToken)

   at Our.Umbraco.FileSystemProviders.Azure.AzureFileSystem.GetLastModified(String path)

   at Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem.GetLastModified(String path)

   at Our.Umbraco.FileSystemProviders.Azure.FileSystemVirtualFile.Open()

   at System.Web.HttpResponse.WriteVirtualFile(VirtualFile vf)

   at System.Web.StaticFileHandler.ProcessRequestForNonMapPathBasedVirtualFile(HttpRequest request, HttpResponse response, String overrideVirtualPath)

   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)

   at System.Web.StaticFileHandler.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

and

ImageProcessor.Common.Exceptions.ImageProcessingException: GetResponseAsync 132 : Response status code does not indicate success: 500 (Internal Server Error).

SourceContext: ImageProcessor.Web.Helpers.RemoteFile

ImageProcessor is configured with the CloudImageService settings.

After downgrading to 2.0.1, things work as expected, images are resized and I the requests get redirected to the cache on blob storage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions