Open Closed

Exception details not logged to Application Insights - only generic error shown #10304


User avatar
0
LW created

Hi

We are experiencing an issue where exceptions are not being properly logged with their full details to Application Insights.

Problem: When an error occurs, we only see a generic error message in the logs, not the actual exception details or stack trace.

Example from Application Insights:

MessageTemplate: ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "Sisäinen virhe tapahtui pyynnön käsittelyssä.",
  "details": null,
  "data": null,
  "validationErrors": null
}

RequestPath: /api/abp/application-localization
ActionName: Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationLocalizationController.GetAsync (Volo.Abp.AspNetCore.Mvc)

Expected behavior: We want to hide exception details from the client (for security), but still log the full exception with stack trace to Application Insights for debugging purposes.

Questions:

  1. Is there a built-in ABP configuration to log full exception details server-side while hiding them from clients?
  2. Are we missing any middleware or configuration that would enable detailed server-side logging?
  3. Do we need to implement a custom IExceptionFilter or override IExceptionToErrorInfoConverter?

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The RemoteServiceErrorInfo will be shown for the front end.

    abp will also write the error logs when RemoteServiceErrorInfo happens.

    You can check [Err] logs in the logs.txt file

    Thanks.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.