heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

`heroku login` raises "json: cannot unmarshal object into Go value of type string" #1957

Open PetrKaleta opened 8 years ago

PetrKaleta commented 8 years ago
$ heroku --version
heroku-toolbelt/3.43.2 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/5.2.9-e9df6ac (darwin-amd64) go1.6.2
ruby -v
jruby 9.1.1.0 (2.3.0) 2016-05-19 fe84e89 Java HotSpot(TM) 64-Bit Server VM 24.65-b04 on 1.7.0_67-b01 [darwin-x86_64]
ransombriggs commented 8 years ago

@PetrKaleta Is there a backtrace in ~/.cache/heroku/error.log ?

PetrKaleta commented 8 years ago

@ransombriggs we've found whats causing this. In our app we have ENV variable HEROKU_HOST which contains host of our heroku app instance (as expected). But this env variable is breaking heroku CLI...

ransombriggs commented 8 years ago

@PetrKaleta thanks for letting us know the fix in case anyone else encounters this. Another reserved variable which will cause problems like this is HEROKU_API_URL. Both of them are used to point the CLI at dev instances of the Heroku API for testing.