Open ryanwalters opened 8 years ago
Is C:\...
literally what it says?
No, it points to my user folder.
does it have any strange characters? what happens if you run set LOCALAPPDATA=C:\heroku
?
No strange characters. Running set LOCALAPPDATA=C:\heroku
has no effect, the same errors occur.
try reinstalling, you have an old version
After reinstalling, running heroku login
generates the same error. The only difference being the version (3.42.27 vs 3.42.25) and Error ID.
Error: Invalid argument - "C:\...\AppData\Local/heroku/heroku-cli.exe" version (errno::EINVAL)
Command: heroku login
Version: heroku/toolbelt/3.42.27 (i386-mingw32) ruby/2.1.7
Error ID: 0755e40010a74960818e5e50de1ca81a
@ryanwalters Sorry for the delayed response, but I think this may be a variation on issues from here heroku/heroku-cli#84 . Could you try running heroku login
from the Command Prompt rather than mingw and see if that works? If it does, then you can switch back to mingw and continue working. There are known issues with heroku login
and mingw. The root cause of this problem is that stdin is not a real terminal, so we cannot turn off the echo during the password request.
I have the same error using cmd.exe. Doesn't matter if I run the login command or any other.
@ryanwalters Are you running BitDefender antivirus software, a user encountered an error like this who had BitDefender installed, which started blocking this executable.
FWIW, this is exactly what I just run into. Bitdefender botched an update (reported 'Gen:Variant.Midie.8641') and I had to reinstall from scratch, since I was getting 'panic' on further updates. Even reinstalling failed at first, I had to add an exception for heroku-cli.exe. Thanks Bitdefender!
I'm on Windows 7. I've been having issues with the CLI recently so I reinstalled from the downloadable.
After installing, I ran the command
heroku login
:error.log
Subsequent attempts to
heroku login
How can I fix heroku-cli?