cognito-express icon indicating copy to clipboard operation
cognito-express copied to clipboard

How to make the https://cognito-idp request from Proxy from with-in the app?

Open RaviPinisetti opened this issue 4 years ago • 2 comments

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?

RaviPinisetti avatar Mar 13 '20 20:03 RaviPinisetti

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.

ghdna avatar Apr 12 '20 16:04 ghdna

@RaviPinisetti did you find a solution for this issue, I'm having the same issue.

fyelci avatar Oct 15 '21 22:10 fyelci