aws_jwt_cognito icon indicating copy to clipboard operation
aws_jwt_cognito copied to clipboard

Any Idea for this issue - com.nimbusds.jose.RemoteKeySourceException: Couldn't retrieve remote JWK set: Read timed out

Open ricktam1469 opened this issue 5 years ago • 7 comments

I a getting this issue com.nimbusds.jose.RemoteKeySourceException: Couldn't retrieve remote JWK set: Read timed out only for the first time hit.

ricktam1469 avatar Jul 22 '20 14:07 ricktam1469

have u tried increasing the timeout!

rrohitramsen avatar Jul 22 '20 15:07 rrohitramsen

Can you please help with the section where do I need to change it. I am unable to find it.

ricktam1469 avatar Jul 22 '20 17:07 ricktam1469

There is no such timeout in the code you have provided, and I am also unable to change the value as timeout mentioned is final variable. Can you please help me in this?

ricktam1469 avatar Jul 23 '20 15:07 ricktam1469

At this place - https://github.com/rrohitramsen/aws_jwt_cognito/blob/master/src/main/java/com/aws/jwt/token/AwsCognitoJwtParserUtil.java#L168 you are getting error, please try moving this call in retry method.

rrohitramsen avatar Jul 23 '20 15:07 rrohitramsen

Where is retry method?

ricktam1469 avatar Jul 23 '20 15:07 ricktam1469

you mean re-try and catch method???

ricktam1469 avatar Jul 23 '20 15:07 ricktam1469

I have tried all the ways but it is not working at all. If you don't have any solution, could you please suggest if anything else is there?

ricktam1469 avatar Jul 24 '20 05:07 ricktam1469