System.NullReferenceException at at Duende.IdentityServer.Services.DefaultSessionCoordinationService.ProcessExpirationAsync #191
-
We are getting multiple errors in our backend error logs from ProcessExpirationAsync. Can a null check be added for session before getting clientid? Category: Microsoft.Extensions.DependencyInjection.ServerSideSessionCleanupHost Exception removing expired sessions Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Duende.IdentityServer.Services.DefaultSessionCoordinationService.ProcessExpirationAsync(UserSession session) in /_/src/IdentityServer/Services/Default/DefaultSessionCoordinationService.cs:line 138 at Microsoft.Extensions.DependencyInjection.ServerSideSessionCleanupHost.RunAsync(CancellationToken cancellationToken) in /_/src/IdentityServer/Hosting/ServerSideSessionCleanupHost.cs:line 148 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This can happen if the client is deleted while it still has open sessions. Could that be the situation in your case? |
Beta Was this translation helpful? Give feedback.
-
we have the same problem. The DefaultSessionCoordinationService handles it properly in ProcessLogoutAsync here, but this check is missing in ProcessExpirationAsync |
Beta Was this translation helpful? Give feedback.
-
Thanks folks for reporting! A fix is ready (DuendeSoftware/products#2038) and will go in the next bugfix release. |
Beta Was this translation helpful? Give feedback.
Thanks folks for reporting! A fix is ready (DuendeSoftware/products#2038) and will go in the next bugfix release.