awslabs / aws-jwt-verify

JS library for verifying JWTs signed by Amazon Cognito, and any OIDC-compatible IDP that signs JWTs with RS256, RS384, and RS512
Apache License 2.0
594 stars 43 forks source link

[BUG] --> Timeout error after 1500 ms #128

Closed NavnathGunjal7 closed 1 year ago

NavnathGunjal7 commented 1 year ago

Describe the bug [Please provide a clear and concise description of what the bug is.]---> (error: FetchError: Failed to fetch https://cognito-idp.ap-south-1.amazonaws.com/secrete/.well-known/jwks.json: Response time-out (after 1500 ms.))

it's from node_modules\aws-jwt-verify\dist\cjs\https-node.js:37:53)

Versions Which version of aws-jwt-verify are you using? --> 3.4.0 Are you using the library in Node.js or in the Web browser? --> "engines": { "npm": "9.6.6", "node": "18.13.0" }, If Node.js, which version of Node.js are you using? (Should be at least 14)--> Yes If Web browser, which web browser and which version of it are you using? --> Chorme latest If using TypeScript, which version of TypeScript are you using? (Should be at least 4) --> yes above 4

To Reproduce not sure it happens sometimes but happening frequently

ottokruse commented 1 year ago

See this comment. If that doesn't help you let us know: https://github.com/awslabs/aws-jwt-verify/issues/72#issuecomment-1139609992