sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

HELP: Test the API's

Open ThisNameCubed opened this issue 5 years ago • 4 comments

When I attempt to Test the API's as stated in: https://serverless-stack.com/chapters/test-the-apis.html Specifically this command: npx aws-api-gateway-cli-test \ --username='[email protected]' \ --password='Passw0rd!' \ --user-pool-id='YOUR_COGNITO_USER_POOL_ID' \ --app-client-id='YOUR_COGNITO_APP_CLIENT_ID' \ --cognito-region='YOUR_COGNITO_REGION' \ --identity-pool-id='YOUR_IDENTITY_POOL_ID' \ --invoke-url='YOUR_API_GATEWAY_URL' \ --api-gateway-region='YOUR_API_GATEWAY_REGION' \ --path-template='/notes' \ --method='POST' \ --body='{"content":"hello world","attachment":"hello.jpg"}'

After filling in the required info I'm getting this error:

npx: installed 106 in 2.889s Authenticating with User Pool Getting temporary credentials Making API request { status: 404, statusText: 'Not Found', data: { message: 'No method found matching route notes%E2%80%98notes%E2%80%99 for http method POST.' } }

PLEASE HELP.

ThisNameCubed avatar Jan 19 '19 17:01 ThisNameCubed

Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122

We can help you there.

jayair avatar Jan 26 '19 02:01 jayair

It’s been solved! Thank you for updating me though!

Sent from my iPhone

On Jan 25, 2019, at 6:52 PM, Jay V [email protected] wrote:

Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122

We can help you there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ThisNameCubed avatar Jan 26 '19 03:01 ThisNameCubed

It’s been solved! Thank you for updating me though! Sent from my iPhone On Jan 25, 2019, at 6:52 PM, Jay V @.***> wrote: Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122 We can help you there. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solve it!? I got the same error..

abhinavjonnada82 avatar May 23 '19 03:05 abhinavjonnada82

It’s been solved! Thank you for updating me though! Sent from my iPhone On Jan 25, 2019, at 6:52 PM, Jay V @.***> wrote: Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122 We can help you there. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solve it!? I got the same error..

@abhinavjonnada82 could u solve the error ? I am facing the same issue again :(

bedamatta05 avatar May 28 '21 11:05 bedamatta05