Uploading/adding product image to Azure blob fails

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
nopCommerce version: 4.3
Hosted on Azure app service with azure sql and blob storage enabled

Steps to reproduce the problem:

I'm getting the exception below when i'm trying to add an image to a product.

when uploading it, i can see the thumbnail in the storage container. The normal sized image isn't there
when i click "add picture" there is no thumbnail nor the normal sized image in the blob storage. Also the exception below is thrown when clicking the button.
tried both media settings "pictures are stored into database" and "pictures are stored into file system". Btw which one should it be when using azure blob storage since it isn't documented?
Thanks for your help and advice.

Application: w3wp.exe CoreCLR Version: 4.700.20.41105 .NET Core Version: 3.1.8 Description: The process was terminated due to an unhandled exception. Exception Info: Microsoft.WindowsAzure.Storage.StorageException: The specified blob does not exist. at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteAsyncInternal[T](RESTCommand``1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token) at Nop.Services.Media.AzurePictureService.DeletePictureThumbsAsync(Picture picture) in D:\a\1\s\Libraries\Nop.Services\Media\AzurePictureService.cs:line 212 at Nop.Services.Media.AzurePictureService.DeletePictureThumbs(Picture picture) in D:\a\1\s\Libraries\Nop.Services\Media\AzurePictureService.cs:line 143 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state) at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action``1 callback, TState& state) at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() Request Information RequestID:a77839a3-501e-0039-0180-929c44000000 RequestDate:Thu, 24 Sep 2020 14:38:22 GMT StatusMessage:The specified blob does not exist. ErrorCode:BlobNotFound ErrorMessage:The specified blob does not exist. RequestId:a77839a3-501e-0039-0180-929c44000000 Time:2020-09-24T14:38:22.6174622Z
3 年 前
In the upcoming version v4.4 this problem is being taken care of: https://github.com/nopSolutions/nopCommerce/pull/5019

For the current version v4.3, I've made a solution based on the v4.4 implementation. You can find the adaption here: https://github.com/nopSolutions/nopCommerce/issues/5050
3 年 前
That's right, there will be no problem in version 4.40. A working solution for version 4.30 is given in the ticket https://github.com/nopSolutions/nopCommerce/issues/5050. We checked it against the code for 4.40 and taking into account the peculiarities of the new version, everything is identical.

undersiege89 wrote:
In the upcoming version v4.4 this problem is being taken care of: https://github.com/nopSolutions/nopCommerce/pull/5019

For the current version v4.3, I've made a solution based on the v4.4 implementation. You can find the adaption here: https://github.com/nopSolutions/nopCommerce/issues/5050
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.