ruimarinho / gsts

Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
MIT License
219 stars 38 forks source link

page.goto: Page closed error on first attempt #103

Closed TheEdgeOfRage closed 9 months ago

TheEdgeOfRage commented 1 year ago

Occasionally (I assume when the token expires) gsts will fail with a message like this:

$ gsts --aws-role-arn arn:aws:iam::[acc_id]:role/SSOAdministrator --sp-id [id] --idp-id [id] --aws-region eu-west-1 --headful
✔ Login successful!
✖ page.goto: Page closed
=========================== logs ===========================
navigating to "https://accounts.google.com/o/saml2/initsso?idpid=[id]&spid=[id]&forceauthn=false", waiting until "load"
============================================================
    at file:///usr/lib/node_modules/gsts/index.js:261:32 {
  name: 'Error'
}

I've added headful in the above command since that triggers it every time. I have gsts configured the same way on another PC (with the same OS and everything) as well, but it doesn't happen there, so it seems to be machine specific

TheEdgeOfRage commented 9 months ago

Apparently the update to 5.0.4 (or 3, I skipped that one) fixed this. I'll close this for now