ABP throws an exception at the back end
throw new UserFriendlyException($"report an error");
Before publishing, you need to set whether to send an error to the front end
if this is set to true, all exceptions and details will be sent directly to the client in case of an error. Default value: false (ABP hides the exception details from the client, except for special exceptions.)
public override void PreInitialize()
{
Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = false;
#if DEBUG
Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = true;
#endif
}
Similar Posts:
- [Solved] failure to inject AuthenticationManager directly Error
- Problems of bad credentials, encoded password does not look like bcrypt in spring-cloud-oauth2 upgrade
- Springboot2 oauth2 Error: Possible CSRF detected – state parameter was required but no state could
- [Solved] java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null”
- Common attributes of unity inspector panel
- HDFS: How to Operate API (Example)
- [Solved] remote calling three-party interface error: javax.net.ssl.SSLHandshakeException
- Error during WebSocket handshake 403 [How to Solve]
- For Vue, an error is reported in “exports is not defined” in webpack
- [Solved] Using JDK dynamic agent to customize SPI Error: UndeclaredThrowableException