Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'id' of undefined when heroku login -i #149

Open
lakudo opened this issue Apr 2, 2020 · 0 comments
Open

Comments

@lakudo
Copy link

lakudo commented Apr 2, 2020

Hi,
I came across a login issue. When I ran " heroku login -i" from vps terminal, promt following errors
I tried to uninstall the CLI then reinstall it, It still works no well. Could you help to solve it ?

root@srv:~# heroku -v

heroku/7.39.2 linux-x64 node-v12.13.0

root@srv:~# heroku login -i

heroku: Enter your login credentials

Email: @.****

Password: *********

TypeError: Cannot read property 'id' of undefined
at Login.interactive (/usr/local/lib/heroku/node_modules/@heroku-cli/command/lib/login.js:183:30)

I found the code '/usr/local/lib/heroku/node_modules/@heroku-cli/command/lib/login.js:183:30 ',as following

            if (!err.body || err.body.id !== 'two_factor') {
                if (err.body.id === 'device_trust_required') {
                    err.body.message = 'The interactive flag requires Two-Factor Authentication to be enabled on your account. Please use heroku login.';
                }
                throw err;
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant