I have a python azure function app.
It was working fine, until this morning. func start runs fine, but when I run the listed endpoints, it throws this error:
An unhandled host error has occurred.
[2024-09-16T16:15:59.570Z] System.Private.CoreLib: Exception has been
thrown by the target of an invocation.
Microsoft.AspNetCore.Authentication.JwtBearer: Could not load file or
assembly 'System.IdentityModel.Tokens.Jwt, Version=6.35.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find
the file specified.
I don't understand this at all. I have no reference to this package, neither am I using dotnet.
All I am using is Azure function core tools.
How do I fix this ?