heroku / cli

Heroku CLI
https://devcenter.heroku.com/articles/heroku-cli
ISC License
855 stars 224 forks source link

Error on SSO login #1283

Closed zeke closed 8 months ago

zeke commented 5 years ago

👋 I log in all the time. Never seen this error before:

$ heroku login --sso
heroku: Press any key to open up the browser to login or q to exit: 
Opening browser to https://cli-auth.heroku.com/auth/browser/960bdecf-3f8f-4063-8433-71c8dfeef483
heroku: Waiting for login... !
JSONError: Unexpected end of JSON input while parsing near ' '
    at module.exports (/usr/local/Cellar/heroku/7.25.0/lib/client/7.26.2/node_modules/parse-json/index.js:26:19)
    at HTTP._parse (/usr/local/Cellar/heroku/7.25.0/lib/client/7.26.2/node_modules/@heroku-cli/plugin-auth/node_modules/http-call/lib/http.js:343:25)

$ heroku --version
heroku/7.26.2 darwin-x64 node-v11.14.0

$ uname -a
Darwin zekes-air.lan 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64
zeke commented 5 years ago

Worked on the second try:

$ heroku login --sso
heroku: Press any key to open up the browser to login or q to exit: 
Opening browser to https://cli-auth.heroku.com/auth/browser/bcf07ae2-96a3-4d41-b68b-be5a5099466f
Logging in... done
Logged in as zeke@github.com

Maybe I waited too long on the first run.

RasPhilCo commented 5 years ago

Interesting. We'll keep an eye out for this.

eablack commented 8 months ago

Closing this as we have not seen an occurrence in recent versions of the cli.