Failure retrieving keys from OIDC auth provider

I am suddenly getting oidc validation error with the following message in the logs:

time="Aug 16 09:55:17" level=warning msg="JWT Invalid: Validation error. Validation error. Failure while decoding the jwk retrieved from the  endpoint https://i2alabs.oktapreview.com/oauth2/default/v1/keys." 

I set log_level to debug but I don’t see any more information than that. I have another service running on the same machine with the same network config that is able to retrieve the keys from the auth provider and successfully validate incoming jwts.

How can I diagnose this?

never mind. With the change here I was able to reveal the source of the error. In my case:

json: duplicate key 'kty' in object