- ABP Framework version: v8.1.1
- UI Type: Angular
- Database System: EF Core - SQL Server
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace: The blogging image cannot be loaded on the App page, but the Admin can.
- Steps to reproduce the issue:
- On the Admin page - https://localhost:44348/ - we added a new blog and uploaded the image. Now we can see the uploaded image
- On the Dashboard page - http://localhost:4200/ - we call the API to get a list post from Blogging. Now we can not see the uploaded image
What do I miss when setting up the Blogging Image on the App page?
9 Answer(s)
-
0
Hi,
On the Dashboard page - http://localhost:4200/ - we call the API to get a list post from Blogging. Now we can not see the uploaded image
Is there any error message?
-
0
-
0
Could you please share the full logs? thanks
-
0
Could you please share the full logs? thanks
2024-05-28 16:51:01.037 +07:00 [ERR] Could not find the requested BLOB 'ece3a09c571534cf87663a12a66e3ec0.jpg' in the container 'blogging-files'! Volo.Abp.AbpException: Could not find the requested BLOB 'ece3a09c571534cf87663a12a66e3ec0.jpg' in the container 'blogging-files'! at Volo.Abp.BlobStoring.BlobContainer.GetAsync(String name, CancellationToken cancellationToken) at Volo.Blogging.Files.FileAppService.GetFileAsync(String name) in C:\Users\Canh\Staff\Source\StaffApp\aspnet-core\modules\Volo.Blogging\src\Volo.Blogging.Application\Volo\Blogging\Files\FileAppService.cs:line 37 at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue
1.ProceedAsync() at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter
1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue
1.ProceedAsync() at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func
3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter
1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue
1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func
3 proceed) at Volo.Blogging.BlogFilesController.GetFileAsync(String name) in C:\Users\Canh\Staff\Source\StaffApp\aspnet-core\modules\Volo.Blogging\src\Volo.Blogging.HttpApi\Volo\Blogging\BlogFilesController.cs:line 33 at lambda_method6371(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker. -
0
-
0
yes, they are same value, I can download same image from both URL
-
0
That's weird.
Could you please share a simple project with me? I will check it. my email is shiwei.liang@volosoft.com thanks.
-
0
no, it's my company project. So I can not share for you now
-
0
You can use CLI to create a new simple project to reproduce the problem and share it with me