hi
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Information)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
Thanks.
hi
You can disable the CheckLibs, It won't affect anything, just remeind developer to run the install-libs command
Configure<AbpMvcLibsOptions>(options =>
{
options.CheckLibs = false;
});
Thanks.
hi
Can you enable debug logging and share the full logs.txt file at the time of the error?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks
hi
I think your slow problem is probably not related to returning all the JSON, because a delay of 30-40 seconds is unlikely to be caused by that.
It's most likely that the delay was caused by the database or cache server.
Thanks.
BTW, you can test with this sultion: https://abp.io/support/questions/10483/v1010-Tiered-Empty-grantedPolicies-in-WebPublic-MVC-when-CmsKit-is-enabled#answer-3a1fbf3e-08f2-5b12-1295-acf09d5eb112
Thanks.
hi
This version of HttpContextAbpAccessTokenProvider will fix the problem.
Can you try to add it to your Web.Public project?
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAbpAccessTokenProvider))]
public class MyHttpContextAbpAccessTokenProvider : HttpContextAbpAccessTokenProvider
{
public MyHttpContextAbpAccessTokenProvider(IHttpContextAccessor httpContextAccessor)
: base(httpContextAccessor)
{
}
public override async Task<string?> GetTokenAsync()
{
var httpContext = HttpContextAccessor?.HttpContext;
if (httpContext == null)
{
return null;
}
if (!httpContext.RequestServices.GetRequiredService<ICurrentUser>().IsAuthenticated)
{
var result = await httpContext.AuthenticateAsync();
if (result.Succeeded && result.Properties != null)
{
return result.Properties.GetTokenValue("access_token");
}
return null;
}
return await httpContext.GetTokenAsync("access_token");
}
}
Thanks.
Thanks. I will deep check it.
hi
Does it work if you remove CmsKit modules?
//typeof(CmsKitProPublicWebModule)
Thanks.
hi
You can use a user to get an access token instead of client_credentials
"IdentityClients": {
"Default": {
"GrantType": "password",
"ClientId": "DAS",
"ClientSecret": "1q2w3e*",
"UserName": "admin",
"UserPassword": "1q2w3E*",
"Authority": "https://localhost:44322",
"Scope": "MS1Service"
}
}
Thanks.