さて今回は、Herokuにプログラムをアップロードしようとしたときに発生した「Do not authenticate with username and password using git.」のエラーが出た時の対処法を備忘録として書いておきます。
エラー内容
Herokuに以下のコマンドを実行する
sudo git push heroku master
そうすると以下のようなエラーが発生。
Username for 'https://git.heroku.com': ***
Password for 'https://***@git.heroku.com':
remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry the git command.
remote: ! See documentation for details:
(node:8812) SyntaxError Plugin: heroku: /home/test/.local/share/heroku/config.json: Unexpected end of JSON input
module: @oclif/config@1.17.0
task: runHook prerun
plugin: heroku
root: /snap/heroku/4076
See more details with DEBUG=*
› Warning: token will expire 11/14/2021
› Use heroku authorizations:create to generate a long-term token
bc2776d2-ffee-459c-ad36-*****
コメント