<@U01JVDKASAC> <@U02TE51JMSM> Dear Sir, this time ...
# guide
s
@Frank @Gregory Houtteman Dear Sir, this time I am getting the following error Authenticating with User Pool Getting temporary credentials Making API request getaddrinfo ENOTFOUND sgkvf7rz4h.execute-api.us-east-1.amazonaws.comsrc Can you guide me on why it's happening
m
What's that
src
at the end of the URL?
s
@manitej path to lambda function as shown in image
@manitej in notes application it is /notes as shown in image
f
@Sulaiman Baig I think @manitej meant the
src
at the end of
Copy code
getaddrinfo ENOTFOUND sgkvf7rz4h.execute-api.us-east-1.amazonaws.comsrc
I think you might’ve a typo in the url
s
@Frank I am just getting this one and I did not type the URL I just copied the endpoint from the terminal and paste it there. npx: installed 114 in 22.256s Authenticating with User Pool Getting temporary credentials Making API request getaddrinfo ENOTFOUND sgkvf7rz4h.execute-api.us-east-1.amazonaws.comsrc PS G:\serverless_stack\my-sst-app>
m
@Sulaiman Baig don't copy the url, press `ctrl`and click the url in terminal and try
s
@manitej I clicked on URL it opened in browser with this response
Copy code
{
  "message": "Forbidden"
}
after I again hit enter in the terminal, this time I got as follows Authenticating with User Pool Getting temporary credentials Making API request { status: 404, statusText: 'Not Found', data: { message: 'Not Found' } }
f
yeah the url won’t open in browser because of the IAM authorizer you added
m
I guess it's related to the logic now. @Frank might help
f
Can you paste here the command u entered in the terminal?
s
@Frank npx aws-api-gateway-cli-test --username='my email here' --password='my pass here' --user-pool-id='my pool id here' --app-client-id='my client id here' --cognito-region='us-east-1' --identity-pool-id='my pool id here' --invoke-url='https://sgkvf7rz4h.execute-api.us-east-1.amazonaws.com/' --api-gateway-region='us-east-1' --path-template='src/lambda.handler' --method='POST'
@Frank Issue resolved. It was GET but by mistake, I was calling it POST