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)
-
0
Check you
appsettings.json
file.AbpAccountPublic
underRemoteServices
should point to AuthServer:"RemoteServices": { "Default": { "BaseUrl": "https://localhost:44305" }, "AbpAccountPublic": { "BaseUrl": "https://localhost:44305" -> This should be authserver URL } },
-
0
It works fine for me! Thanks!