heroku / heroku-taps

A plugin containing taps (db:push and db:pull) functionality for the Heroku CLI.
9 stars 3 forks source link

heroku db:pull error with ruby 2.0 #4

Open dhampik opened 11 years ago

dhampik commented 11 years ago

When I use ruby 2.0.0-p195 with rvm and taps-0.3.24.gem I get the following error running heroku db:pull --app my-app sqlite://production.sqlite

Failed to connect to database:
  Sequel::DatabaseConnectionError -> TypeError: wrong argument type nil (expected Hash)

Switching to ruby 1.9.3 resolved this issue. You should fix it for ruby 2.0

donnykurnia commented 11 years ago

Also error in ruby-2.0.0-p247

Loaded Taps v0.3.24
Auto-detected local database: mysql2://user:password@127.0.0.1/db_name?encoding=utf8
Warning: Data in the database 'mysql2://user:password@127.0.0.1/db_name?encoding=utf8' will be overwritten and will not be recoverable.
Failed to connect to database:
  Sequel::DatabaseConnectionError -> TypeError: can't convert nil into String
maprinz commented 11 years ago

had the same issue, solved it with gem install heroku taps sequel

trappist commented 11 years ago

Same bug here. @maprinz's solution worked for me as well.

muratguzel commented 10 years ago

same bug with ruby 2.0

catsby commented 10 years ago

Hello all – can you try using the Heroku Toolbelt instead? That should resolve this any many other issues.