Activities of "improwise"

Seems like disabling the Chat module makes the exceptions go away, it does not however seem to affect the error message being displayed in the app. So probably not related although you should considering creating a new ticket to handle the Chat related Exceptions.

That error message above is then followed by this usually

Research seem to indicate that this could be OAuth related. We have noticed that when running backend in debug mode (locally) we are getting frequent Exceptions in the Use() method in the XXXHttpApiHostModule. which seem to be related to the chat module. Could perhaps be related to this but that is more of a guess....

app.Use(async (httpContext, next) => { var accessToken = httpContext.Request.Query["access_token"];

var path = httpContext.Request.Path;
        if (!string.IsNullOrEmpty(accessToken) &&
            (path.StartsWithSegments("/signalr-hubs/chat")))
        {
            httpContext.Request.Headers["Authorization"] = "Bearer " + accessToken;
        }

        await next();
    });

[maliming] said: hi

Can you share your Angular website URL and test username&password?

liming.ma@volosoft.com

Thanks

It is currently in an internal (IP protected) Azure resource so that could turn out to be problematic.

Did try to run the Angular app locally and we are getting the 204s there as well but without the "An error has occurred".

Is there no logging behind those error messages even serverside? What/how are they triggered, something must be setting them off?

[maliming] said: hi

How did you customize this footer in your mvc project?

Can you share your project file structure info?

Thanks.

We haven't (AFAICR), which was the main reason I was surprised that it was different between different pages.

What is weird though is that only the error pages seem to have this footer, not the main login which I assume is also in MVC?

Regardless, please consider just removing this as discussed before, I see zero added value in having the default footer being displayed by default and then having to do code changes just to hide it. Outside of Volosoft, I find it hard to imagine that anyone would want a "Copyright Volosoft" displayed in their apps...

Not sure what "and copy your account _Footer.cshtml in it?" refers to?

[maliming] said: hi

Here is an example to use the log configuration with appsettings.json

{ 
  "Serilog": { 
    "MinimumLevel": { 
      "Default": "Debug", 
      "Override": { 
        "Microsoft": "Information", 
        "Microsoft.EntityFrameworkCore": "Warning" 
      } 
    }, 
    "WriteTo": [ 
      { 
        "Name": "Async", 
        "Args": { 
          "configure": [ 
            { 
              "Name": "File", 
              "Args": { "path": "Logs/logs.txt" } 
            } 
          ] 
        } 
      }, 
      { 
        "Name": "Async", 
        "Args": { 
          "configure": [ 
            { 
              "Name": "Console" 
            } 
          ] 
        } 
      } 
    ], 
    "Enrich": [ "FromLogContext" ] 
  } 
} 
 
 
using System; 
using System.Threading.Tasks; 
using Microsoft.AspNetCore.Builder; 
using Microsoft.Extensions.DependencyInjection; 
using Microsoft.Extensions.Hosting; 
using Serilog; 
 
namespace AbpSolution1.Web; 
 
public class Program 
{ 
    public async static Task<int> Main(string[] args) 
    { 
        Log.Logger = new LoggerConfiguration() 
            .WriteTo.Async(c => c.File("Logs/logs.txt")) 
            .WriteTo.Async(c => c.Console()) 
            .CreateBootstrapLogger(); 
 
        try 
        { 
            Log.Information("Starting web host."); 
            var builder = WebApplication.CreateBuilder(args); 
            builder.Host 
                .AddAppSettingsSecretsJson() 
                .UseAutofac() 
                .UseSerilog((context, services, loggerConfiguration) => 
                { 
                    loggerConfiguration 
                        .ReadFrom.Configuration(context.Configuration) 
                        .ReadFrom.Services(services) 
                        .WriteTo.Async(c => c.AbpStudio(services)); 
                }); 
            await builder.AddApplicationAsync<AbpSolution1WebModule>(); 
            var app = builder.Build(); 
            await app.InitializeApplicationAsync(); 
            await app.RunAsync(); 
            return 0; 
        } 
        catch (Exception ex) 
        { 
            Log.Fatal(ex, "Host terminated unexpectedly!"); 
            return 1; 
        } 
        finally 
        { 
            Log.CloseAndFlush(); 
        } 
    } 
} 
 

Thanks.

This is actually quite similar to the one we implemented now except for that we added rollover for log files and we named the "startup log" as startup.txt to keep it separate from the Serilog logging (which probably won't work for the earliest logging so still need that in ABP code probably, just as you did).. This seem to work fine even though we are still in early testing.

There are a couple of 204s for

  • /openid-configuration,
  • /api/abp/application-localization?cultureName=en&onlyDynamics=false
  • /.well-known/jwks
  • /api/abp/application-configuration?includeLocalizationResources=false

but if those are triggering this, I believe it is the error handling in ABP that is not working as it should as 204s are perfectly valid http codes to get back.

AI response isn't valid as we have no errors and everything works fine except for first page load so should be nothing with CORS etc.

Should add that we are using Azure Web App Linux.

We have an ABP app built using the latest version of ABP - Angular for UI. When running the angular app locally against the .Host hosted in an Azure Web App everything works as it should. However, when pushing the Angular app to a Web App (not a static web app for reasons) everything works as well, except that we always get a "An error has occurred! Error detail not sent by server." at first page load. This regardless of which browser etc. This only happens on first full page load, after which everything works as it should.

There are no errors reported whatsoever in server logs, web browser console etc. If it had not been for this error message, you would have no idea that something isn't what it should be.

This happens regardless of if you are authenticated or now (authentication works fine also).

For obvious reasons we can't post any logs as there are none indicating any problem.

Showing 41 to 50 of 418 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
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 February 17, 2026, 09:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.