cognito-express
cognito-express copied to clipboard
How to make the https://cognito-idp request from Proxy from with-in the app?
Hi, The request using the URL: https://cognito-idp.${REGION}.amazonaws.com/${POOLID}/.well-known/jwks.json is being made from strategy.js while running the app initially, but getting the following error: Unhandled rejection TypeError: Unable to generate certificate due to RequestError: Error: connect ECONNREFUSED 54.209.125.172:443
I'm able to hit the same from the browser and see the JSON response. I'm assuming that the issue could be because of company's proxy, but not sure how to make this work from with-in the app. Any insights, please?
From within the app as in within your VM or EC2? Do you have internet access from this machine? Try pinging that URL through the terminal.
@RaviPinisetti did you find a solution for this issue, I'm having the same issue.