0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

heroku login:IP address mismatchエラーの解決方法

Posted at

heroku login

heroku loginを実行すると、IP address mismatchというエラーがブラウザに出力されました。
スクリーンショット 2023-09-23 12.56.32.png

% heroku login
 ›   Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/~~~~~~
heroku: Waiting for login... ⣻

heroku login -i

heroku login -iを実行したところEmail、Passwordを求められたため、これでいける!と思いましたがエラーが発生。

% heroku login -i
 ›   Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Enter your login credentials
Email [test@gmail.com]:
Password: ********
Error: Your account has MFA enabled; API requests using basic authentication with email and password are not supported. Please generate an authorization token for API access.

Error ID: vaas_enrolled

API Keyの設定

パスワードは、MFAが有効化されてる時、API Keyを設定する必要がある。
そのため、PasswordにAPI Keyをコピペしたところ成功しました。

% heroku login -i
 ›   Warning: heroku update available from 8.4.0 to 8.4.3.
heroku: Enter your login credentials
Email [test@gmail.com]:
Password: ************************************ ← API Keyを設定する

API Keyの発行場所

スクリーンショット 2023-09-23 12.55.06.png
スクリーンショット 2023-09-23 12.55.13.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?