Receiving error occurred while attempting to decode the Jwt .. Not Found 404

I got this error while running my Spring Boot application, although it has been working before with the same config.

org.springframework.security.authentication.AuthenticationServiceException: An error occurred while attempting to decode the Jwt: Couldn’t retrieve remote JWK set: org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: “Not found.”
at org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider.getJwt(JwtAuthenticationProvider.java:106) ~[spring-security-oauth2-resource-server-6.2.4.jar:6.2.4]

okta:
  oauth2:
    issuer: https://<tenant>.auth0.com/
    audience: https://<api>/

i didn’t upgrade my spring Boot or change anything

Hi @doaa.farouk07

Welcome to the Auth0 Community!

Thank you for posting your question. Based on my research regarding your question, the 404 Not Found error indicates that the issue with your app is that it is unable to reach the JWKS endpoint, which is based on your issuer. Please verify that the issuer value matches exactly the one in the token’s iss claim.

Thanks
Dawid