heroku / legacy-cli

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

stdout failure for heroku certs #1074

Open ghost opened 10 years ago

ghost commented 10 years ago

Command "heroku certs" is failing to dump to stdout, when piped or redirected, null output is received.

Demo: user@host:~/projects/app-of-choice$ heroku certs Endpoint Common Name(s) Expires Trusted


xxxxxxxxx.herokussl.com *.example.com, example.com 2014-10-07 23:59 UTC True user@host:~/projects/app-of-choice$ heroku certs > /tmp/certs.out ; wc -l /tmp/certs.out 0 /tmp/certs.out user@host:~/projects/app-of-choice$

heroku certs:info has the same behavior.

Please address, this information is needed for a simple backup of Heroku app configuration.

briankyckelhahn commented 10 years ago

"heroku certs --app [name]" fails for me, too:

testolde:ol b$ heroku certs --app myappname

! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       undefined method `[]' for nil:NilClass (NoMethodError)
Backtrace:   /Users/username/.heroku/client/lib/heroku/command/certs.rb:25:in `block in index'
             /Users/username/.heroku/client/lib/heroku/command/certs.rb:22:in `map!'
             /Users/username/.heroku/client/lib/heroku/command/certs.rb:22:in `index'
             /Users/username/.heroku/client/lib/heroku/command.rb:218:in `run'
             /Users/username/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:24:in `<main>'

Command:     heroku certs --app myappname
Plugins:     heroku-accounts
             heroku-repo

Version:     heroku-toolbelt/3.6.0 (x86_64-darwin10.8.0) ruby/1.9.3
yellowaj commented 10 years ago

Same error for me. I successfully updated the certs, however when I try to output anything from heroku certs it throws the following error:

Certificate details:

 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       undefined method `[]' for nil:NilClass (NoMethodError)
    Backtrace:   /Users/username/.heroku/client/lib/heroku/command/certs.rb:163:in `display_certificate_info'
                 /Users/username/.heroku/client/lib/heroku/command/certs.rb:115:in `info'
                 /Users/username/.heroku/client/lib/heroku/command.rb:218:in `run'
                 /Users/username/.heroku/client/lib/heroku/cli.rb:28:in `start'
                 /usr/bin/heroku:24:in `<main>'

    Command:     heroku certs:info --app app-name
    Plugins:     heroku-accounts
                 heroku-repo

    Version:     heroku-toolbelt/3.6.0 (x86_64-darwin10.8.0) ruby/1.9.3
arimus commented 9 years ago

Has anyone found a solution to this problem yet? Still occurring for me.

arimus commented 9 years ago

And...update.

So, I added the certificate before adding the domains. Doing a "heroku certs" showed me the certificate without a common name and other details.

To resolve, I added the common name, then removed / re-added the cert, then all was well. heroku certs and heroku certs:info look appropriate now.