PyJWT works when used via aws sam but fails after deploying to aws.
When the lambda function i invoked locally via aws sam the access token is validated.
the same lambda function fails after deploying it to aws.
versions:
Python 3.9
pyjwt[crypto]==2.6.0
Error raised by PyJWT when calling:
jwk_client.get_signing_key(hdr["kid"]).key:
Error raised:
Error: Fail to fetch data from the url, err: "<urlopen error [Errno -5] No address associated with hostname>"
Please refer to our StackOverflow tag for guidance.
PyJWT works when used via aws sam but fails after deploying to aws. When the lambda function i invoked locally via aws sam the access token is validated. the same lambda function fails after deploying it to aws.
versions: Python 3.9 pyjwt[crypto]==2.6.0
Error raised by PyJWT when calling: jwk_client.get_signing_key(hdr["kid"]).key:
Error raised: Error: Fail to fetch data from the url, err: "<urlopen error [Errno -5] No address associated with hostname>"