Heroku client internal error for pg command

When I try to run any of the heroku pg commands, I get this trace:

 $ 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 pg commands work earlier. Any thoughts on what could be the problem?

+6
source share
3 answers

I had a similar problem, I solved it by updating Heroku Toolbelt as well as Postgres.app . I also made sure that my $ PATH contains the correct location of the latest Postgres.app installation on these instructions; however, Postgres.app automatically adjusts the location of the path at startup to the current location.

Hope this helps.

+1
source

I just ran into the same question and opened a Heroku support ticket. They suggested that I download the brand new toolbelt.pkg from http://toolbelt.heroku.com and install it. I just ran

 heroku update 

But this did not solve the problem, although my version of toolbelt showed 3.6.0. I downloaded the new .pkg from the link above, ran it, and everything worked perfectly.

+4
source

First of all, you need to remove the Heroku dashboard:

 rm -rf ~/.heroku sudo rm -rf /usr/local/heroku /usr/bin/heroku 

And then reinstall it. This solved the problem.

+3
source

All Articles