Heroku: Press any key to open up the browser to login or q to exit: fatal: could not read Username for 'https://git.heroku.com': No such device or address

I’m looking to deploy my code to heroku automatically. I have followed the cli authentication which requires a .netrc file in home. Problem is, I’m still getting this error despite of having the ~/.netrc file. Is it possible that the cli isn’t reading the ~/.netrc file?

This is the specific error:

heroku: Press any key to open up the browser to login or q to exit: fatal: could not read Username for '[https://git.heroku.com](https://git.heroku.com/)': No such device or address
1 Like