Error occurred while attempting to decode the Jwt

Abhishek A 0 Reputation points
2026-01-01T05:54:28.8433333+00:00

We observed two brief spikes of 401 Unauthorized errors in our 2 different services. These were caused by transient network failures preventing our services from communicating with Microsoft’s Identity Provider to verify JWT signatures. These were infrastructure-level blips and not application bugs.

Error Details:

  1. Timeout while waiting for cache refresh (15000ms exceeded). (The service waited 15s for the network to respond before failing). NO PROXY ERRORS: org.springframework.security.authentication.AuthenticationServiceException: An error occurred while attempting to decode the Jwt: Timeout while waiting for cache refresh (15000ms exceeded)
  2. Connection refused (I/O error on GET request to login.windows.net): org.springframework.security.authentication.AuthenticationServiceException: An error occurred while attempting to decode the Jwt: I/O error on GET request for "https://login.windows.net/common/discovery/keys": Connection refused
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.