ddollar/heroku-sql-console

heroku sql execution error

jwako opened this issue · 5 comments

Hello,

I just installed heroku-sql-console.
but when I executed this command, I got the following error.
what should I do ?

$ heroku sql
.heroku/plugins/heroku-sql-console/lib/heroku/command/sql.rb:44:in `split': invalid byte sequence in UTF-8 (ArgumentError)

Same for me.
It works perfect since I make a mistake in one sql command (syntax error).
And now I always have this error when I try to access to the console :

/Users/lukas/.heroku/plugins/heroku-sql-console/lib/heroku/command/sql.rb:44:in split': invalid byte sequence in UTF-8 (ArgumentError) from /Users/lukas/.heroku/plugins/heroku-sql-console/lib/heroku/command/sql.rb:44:insqlconsole_history_read'
from /Users/lukas/.heroku/plugins/heroku-sql-console/lib/heroku/command/sql.rb:11:in index' from /usr/local/heroku-client/lib/heroku/command.rb:129:inrun'
from /usr/local/heroku-client/lib/heroku/cli.rb:9:in start' from /usr/local/heroku-client/heroku:28:in

'

I've tried to uninstall and install it again but I still have the same error.

Thanks !

The bug comes from reading invalid history from previous session.
I don't know the ruby langage so I can't fix this bug, so I just disabled the history reading (commented the function call).
lukaspili@534ba4a

Lukas

Thanks, Lukas
I did it.

You should re-open this issue because the bug is still present.

Hello. I apologize for the delayed response. I am currently declaring issue bankruptcy. If this issue still applies to you please feel free to re-open and explain. Thanks :)