Closed icj217 closed 7 years ago
@icj217 Thanks for the detailed report.
I found some more info on this - https://stackoverflow.com/questions/40219518/aws-cognito-unauthenticated-login-error-window-is-not-defined-js. I'll add that in to get around the issue.
@icj217 I just published a new update (1.1.1) fixing this issue. Do you mind testing it and reporting back? You can install the new update using npm install -g aws-api-gateway-cli-test
.
@jayair I installed the new version and uncommented the navigator lines and was able to run the tool successfully!
Not sure if this is a quirk in how I have my User Pool configured, but I was getting the following error when using the command provided in the serverless stack guide:
Command (with values removed):
apig-test --username='' --password='' --user-pool-id='' --app-client-id='' --cognito-region='us-east-1' --identity-pool-id='' --invoke-url='' --api-gateway-region='us-east-1' --path-template='/subscriptions' --method='POST' --body=""
Error:
I was able to get past the error and get the command to work by commenting out lines 343 and 604 in _/usr/local/lib/node_modules/aws-api-gateway-cli-test/nodemodules/amazon-cognito-identity-js/lib/CognitoUser.js that reference the navigator.