Tomasz Sobczyk
10/15/2021, 6:47 PMapig-test --username='*****' --password='*****' --user-pool-id='us-east-1_*****' --app-client-id='*****' --cognito-region='us-east-1' --identity-pool-id='us-east-1:*****' --invoke-url='<https://570f9qril4.execute-api.us-east-1.amazonaws.com>' --api-gateway-region='us-east-1' --path-template='/notes' --method='POST' --body='{"content":"hello world","attachment":"hello.jpg"}'
Results in:
Authenticating with User Pool Getting temporary credentials Making API request getaddrinfo ENOTFOUND 570f9qril4.execute-api.us-east-1.amazonaws.comc
Tomasz Sobczyk
10/15/2021, 6:48 PMFrank
Jay
Jay
Tomasz Sobczyk
10/15/2021, 9:07 PMJay
Tomasz Sobczyk
10/18/2021, 11:48 AMTomasz Sobczyk
10/18/2021, 11:55 AMTomasz Sobczyk
10/18/2021, 11:58 AMTomasz Sobczyk
10/18/2021, 12:55 PMJay
Tomasz Sobczyk
10/19/2021, 9:51 PMTomasz Sobczyk
10/19/2021, 9:51 PMTomasz Sobczyk
10/19/2021, 9:55 PMTomasz Sobczyk
10/19/2021, 9:55 PMTomasz Sobczyk
10/19/2021, 9:57 PMJay
Tomasz Sobczyk
10/20/2021, 1:59 PMJay
Brett Fieber
10/22/2021, 7:17 PM--path-template='/notes'
Even though I'm using git-bash, windows attempts to resolve any string that starts with a single /
into a path. so it's mangled before it even hits aws-api-gateway-client
.
Change that to
--path-template='//notes'
And it will work.