Open Closed

User Image Lost #4800


User avatar
0
david.hurtado created

We have an error displaying the user's image in the production environment. The image is not displayed and when I inspect the element, it indicates that there is an error with the API. However, when I test it in development, it works fine.

  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Example:
  • When i open the image in a new tag i get this error:
  • {"error":{"code":"NotFound","message":"Not Found","details":null,"data":null,"validationErrors":null}}
  • From this URL:
  • https://example.frontendserver.com/api/account/profile-picture-file/385c0c65-7a0f-61d6-ce6b-39f9bcba9c51
  • Steps to reproduce the issue:"
  • This error occurs in production, it does not happen in development mode.
  • If I access to the user account the image shows correctly
  • For example:
  • Thank you for any idea you can give me regarding how to solve this error?"

2 Answer(s)
  • User Avatar
    0
    gterdem created
    Support Team Senior .NET Developer

    Check you appsettings.json file. AbpAccountPublic under RemoteServices should point to AuthServer:

    "RemoteServices": {
        "Default": {
          "BaseUrl": "https://localhost:44305"
        },
        "AbpAccountPublic": {
          "BaseUrl": "https://localhost:44305" -> This should be authserver URL
        }
      },
    
  • User Avatar
    0
    david.hurtado created

    It works fine for me! Thanks!

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11