Open Closed

The blogging image cannot be loaded on the App page, but the Admin can. #7268


User avatar
0
canh.nguyen@efibot.com created
  • 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)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    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?

  • User Avatar
    0
    canh.nguyen@efibot.com created

    The error is: [ERR] Could not find the requested BLOB 'ece3a09c571534cf87663a12a66e3ec0.jpg' in the container 'blogging-files'!

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could you please share the full logs? thanks

  • User Avatar
    0
    canh.nguyen@efibot.com created

    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.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.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, Func3 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.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 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.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can check the src attribute's value of the img tag, are they the same?

  • User Avatar
    0
    canh.nguyen@efibot.com created

    yes, they are same value, I can download same image from both URL

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    That's weird.

    Could you please share a simple project with me? I will check it. my email is shiwei.liang@volosoft.com thanks.

  • User Avatar
    0
    canh.nguyen@efibot.com created

    no, it's my company project. So I can not share for you now

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can use CLI to create a new simple project to reproduce the problem and share it with me

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38