Search code examples
herokuheroku-toolbeltheroku-postgres

Heroku client internal error for pg command


When trying to run any of the heroku pg commands I'm getting this traceback:

$ heroku pg

 !    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 `get_attachments' for #<Heroku::API:0x007ffcf08b0390> (NoMethodError)
Backtrace:   /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:99:in `app_attachments'
             /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:104:in `hpg_databases'
             /Users/erik/.heroku/client/lib/heroku/helpers/heroku_postgresql.rb:62:in `all_databases'
             /Users/erik/.heroku/client/lib/heroku/command/pg.rb:340:in `hpg_databases_with_info'
             /Users/erik/.heroku/client/lib/heroku/command/pg.rb:19:in `index'
             /Users/erik/.heroku/client/lib/heroku/command.rb:218:in `run'
             /Users/erik/.heroku/client/lib/heroku/cli.rb:28:in `start'
             /usr/bin/heroku:25:in `<main>'

Command:     heroku pg
Plugins:     heroku-config
             heroku-pg-extras

Version:     heroku-toolbelt/3.6.0 (universal.x86_64-darwin13) ruby/2.0.0

All other commands work -- and the pg commands worked find previously. Any thoughts on what might be the problem?


Solution

  • I had a similar issue, I resolved it by updating my Heroku Toolbelt as well as Postgres.app. I also made sure that my $PATH contained the correct location of the most recent Postgres.app installation per these instructions; however Postgres.app automatically adjusted the path location when starting to the most current location.

    Hope that helps.