I have e-mailed you the log file. You can have a look.
No that's not the case. Only IdentityServiceHttpApiClientModule depends on AbpIdentityHttpApiClientModule.
I have e-mailed you the log file. You can have a look.
When fetching permissions for a role from the UI, no logs appear in the Identity Service, but logs are recorded in the Administration Service for the same request.
Here are the full logs:
[10:10:27 INF] Request starting HTTP/1.1 GET http://administration-service:44367/api/permission-management/permissions?providerName=R&providerKey=admin&api-version=1.0 - null null [10:10:27 INF] Executing endpoint 'Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)' [10:10:27 INF] Route matched with {area = "permissionManagement", action = "Get", controller = "Permissions", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.PermissionManagement.GetPermissionListResultDto] GetAsync(System.String, System.String) on controller Volo.Abp.PermissionManagement.PermissionsController (Volo.Abp.PermissionManagement.HttpApi). [10:10:27 DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:3a12fe40-5e08-9485-9631-e33430540d9e,n:AbpIdentity.Roles.ManagePermissions [10:10:27 DBG] Found in the cache: pn:U,pk:3a12fe40-5e08-9485-9631-e33430540d9e,n:AbpIdentity.Roles.ManagePermissions [10:10:27 DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:AbpIdentity.Roles.ManagePermissions [10:10:27 DBG] Found in the cache: pn:R,pk:admin,n:AbpIdentity.Roles.ManagePermissions [10:10:27 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions [10:10:27 DBG] Found in the cache: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions [10:10:27 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": { "ActivatorChain": "Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder" }, "validationErrors": null }
[10:10:27 ERR] An exception was thrown while activating Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder. ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Volo.Abp.Identity.HttpClientUserRoleFinder' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Identity.Integration.IIdentityUserIntegrationService userIntegrationService' of constructor 'Void .ctor(Volo.Abp.Identity.IIdentityUserAppService, Volo.Abp.Identity.Integration.IIdentityUserIntegrationService)'.
See https://autofac.rtfd.io/help/no-constructors-bindable for more info. at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.
[10:10:27 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. [10:10:27 INF] Executed action Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi) in 31.564ms [10:10:27 INF] Executed endpoint 'Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)' [10:10:27 DBG] Added 0 entity changes to the current audit log [10:10:27 DBG] Added 0 entity changes to the current audit log [10:10:27 INF] Request finished HTTP/1.1 GET http://administration-service:44367/api/permission-management/permissions?providerName=R&providerKey=admin&api-version=1.0 - 500 null application/json; charset=utf-8 45.1891ms
Here are the logs for administration service (When I try to fetch permissions based on roles)
{"Timestamp":"2024-11-15T07:58:24.1157351+00:00","Level":"Debug","MessageTemplate":"PermissionStore.GetCacheItemAsync: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions","RenderedMessage":"PermissionStore.GetCacheItemAsync: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"SourceContext":"Volo.Abp.PermissionManagement.PermissionStore","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1166152+00:00","Level":"Debug","MessageTemplate":"Found in the cache: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions","RenderedMessage":"Found in the cache: pn:C,pk:UrvinFinance_BlazorServer,n:AbpIdentity.Roles.ManagePermissions","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"SourceContext":"Volo.Abp.PermissionManagement.PermissionStore","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1446857+00:00","Level":"Error","MessageTemplate":"---------- RemoteServiceErrorInfo ----------\n{\n \"code\": null,\n \"message\": \"An internal error occurred during your request!\",\n \"details\": null,\n \"data\": {\n \"ActivatorChain\": \"Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder\"\n },\n \"validationErrors\": null\n}\n","RenderedMessage":"---------- RemoteServiceErrorInfo ----------\n{\n \"code\": null,\n \"message\": \"An internal error occurred during your request!\",\n \"details\": null,\n \"data\": {\n \"ActivatorChain\": \"Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder\"\n },\n \"validationErrors\": null\n}\n","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1447713+00:00","Level":"Error","MessageTemplate":"An exception was thrown while activating Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder.","RenderedMessage":"An exception was thrown while activating Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder.","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Exception":"Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder.\n ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Volo.Abp.Identity.HttpClientUserRoleFinder' can be invoked with the available services and parameters:\nCannot resolve parameter 'Volo.Abp.Identity.Integration.IIdentityUserIntegrationService userIntegrationService' of constructor 'Void .ctor(Volo.Abp.Identity.IIdentityUserAppService, Volo.Abp.Identity.Integration.IIdentityUserIntegrationService)'.\n\nSee https://autofac.rtfd.io/help/no-constructors-bindable for more info.\n at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext context, Action`1 next)\n at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next)\n at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass41_0.<PropertiesAutowired>b__0(ResolveRequestContext context, Action`1 next)\n at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass39_0.<OnActivated>b__0(ResolveRequestContext context, Action`1 next)\n at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)\n --- End of inner exception stack trace ---\n at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)\n at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid id, Func`1 creator)\n at Autofac.Core.Lifetime.LifetimeScope.CreateSharedInstance(Guid primaryId, Nullable`1 qualifyingId, Func`1 creator)\n at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next)\n at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next)\n at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest& request)\n at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest& request)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Volo.Abp.PermissionManagement.PermissionManager.<>c__DisplayClass24_0.<.ctor>b__1(Type c)\n at System.Linq.Enumerable.SelectIListIterator`2.Fill(IList`1 source, Span`1 results, Func`2 func)\n at System.Linq.Enumerable.SelectIListIterator`2.ToList()\n at Volo.Abp.PermissionManagement.PermissionManager.<>c__DisplayClass24_0.<.ctor>b__0()\n at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)\n--- End of stack trace from previous location ---\n at System.Lazy`1.CreateValue()\n at Volo.Abp.PermissionManagement.PermissionManager.get_ManagementProviders()\n at Volo.Abp.PermissionManagement.PermissionManager.GetInternalAsync(PermissionDefinition[] permissions, String providerName, String providerKey)\n at Volo.Abp.PermissionManagement.PermissionManager.GetAsync(String[] permissionNames, String providerName, String providerKey)\n at Volo.Abp.PermissionManagement.PermissionAppService.GetAsync(String providerName, String providerKey)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()\n at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()\n at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()\n at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)\n at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()\n at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)\n at lambda_method3061(Closure, Object)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)","Properties":{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1447932+00:00","Level":"Error","MessageTemplate":"---------- Exception Data ----------\nActivatorChain = Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder\n","RenderedMessage":"---------- Exception Data ----------\nActivatorChain = Volo.Abp.PermissionManagement.Identity.RolePermissionManagementProvider -> Volo.Abp.Identity.HttpClientUserRoleFinder\n","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1449158+00:00","Level":"Information","MessageTemplate":"Executing {ObjectResultType}, writing value of type '{Type}'.","RenderedMessage":"Executing \"ObjectResult\", writing value of type '\"Volo.Abp.Http.RemoteServiceErrorResponse\"'.","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"ObjectResultType":"ObjectResult","Type":"Volo.Abp.Http.RemoteServiceErrorResponse","EventId":{"Id":1,"Name":"ObjectResultExecuting"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor","ActionId":"f86db83a-7dfb-4976-a8f3-9f32f3baeae6","ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1451345+00:00","Level":"Information","MessageTemplate":"Executed action {ActionName} in {ElapsedMilliseconds}ms","RenderedMessage":"Executed action \"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)\" in 35.6978ms","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"ActionName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","ElapsedMilliseconds":35.6978,"EventId":{"Id":105,"Name":"ActionExecuted"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
{"Timestamp":"2024-11-15T07:58:24.1451577+00:00","Level":"Information","MessageTemplate":"Executed endpoint '{EndpointName}'","RenderedMessage":"Executed endpoint '\"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)\"'","TraceId":"0916ab93ad37a76f6b59a4cfea495dd7","SpanId":"8c4209721689514f","Properties":{"EndpointName":"Volo.Abp.PermissionManagement.PermissionsController.GetAsync (Volo.Abp.PermissionManagement.HttpApi)","EventId":{"Id":1,"Name":"ExecutedEndpoint"},"SourceContext":"Microsoft.AspNetCore.Routing.EndpointMiddleware","RequestId":"0HN858CUPJDOR:00000001","RequestPath":"/api/permission-management/permissions","ConnectionId":"0HN858CUPJDOR","CorrelationId":"01d645ff206e45b494335dc0cd6b7471","ClientId":"UrvinFinance_BlazorServer","UserId":"3a12fe40-5e08-9485-9631-e33430540d9e","Application":"UrvinFinance.AdministrationService.HttpApi.Host"}}
https://www.worldtimebuddy.com/?qm=1&lid=1816670,30&h=1816670&date=2024-11-15&sln=14.5-17&hf=0
Let me know when to join the zoom link, I'll be available anytime after 14:30 CST today Thanks
Could you please confirm if you received my email?
I couldn't find anything AbpClaimTypes.Role in the code.
I can't share the full source code as it's an enterprise application. I can provide the remote access. Thanks