Useless log due to uncatched exception
Author: manu8170Created Sep 22, 2026Updated Sep 30, 2026
- [X ] I have searched open and closed issues for duplicates.
- [ X] I have searched the forum for related topics.
Environment info
- Duplicati version: 2.4.0.0
- Operating system: Windows 11 25H2
- Backend: Openstack Object Storage
Description
Logs contain an error about an unattended exception dealing with lifetime validation for the web administrative session. "# Message
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (IDX10223: Lifetime validation failed. The token is expired. ValidTo (UTC): '22/09/2026 10:50:57', Current time (UTC): '22/09/2026 13:14:34'.)"It seems there is simply an exception to catch to avoid this useless log. Let's keep clean logs ;)
Steps to reproduce
The problem seems to appear when the token for a web session expired.
Screenshots
Debug log
"# Exception
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (IDX10223: Lifetime validation failed. The token is expired. ValidTo (UTC): '22/09/2026 10:50:57', Current time (UTC): '22/09/2026 13:14:34'.)
---> Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo (UTC): '22/09/2026 10:50:57', Current time (UTC): '22/09/2026 13:14:34'.
at Microsoft.IdentityModel.Tokens.ValidatorUtilities.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters, BaseConfiguration configuration)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateJWS(String token, TokenValidationParameters validationParameters, BaseConfiguration currentConfiguration, SecurityToken& signatureValidatedToken, ExceptionDispatchInfo& exceptionThrown)
--- End of stack trace from previous location ---
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, JwtSecurityToken outerToken, TokenValidationParameters validationParameters, SecurityToken& signatureValidatedToken)
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
at Duplicati.WebserverCore.Middlewares.JWTTokenProvider.ParseAndValidateToken(String token, TokenType tokenType)
at Duplicati.WebserverCore.Middlewares.JWTTokenProvider.ReadRefreshToken(String token, String nonce)
at Duplicati.WebserverCore.Services.LoginProvider.PerformLogoutWithRefreshTokenAsync(String refreshTokenString, String nonce, CancellationToken ct)
--- End of inner exception stack trace ---Message
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (IDX10223: Lifetime validation failed. The token is expired. ValidTo (UTC): '22/09/2026 10:50:57', Current time (UTC): '22/09/2026 13:14:34'.)"Source: duplicati/duplicati