Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket closed on first command #2

Open
bbergstrom opened this issue Nov 7, 2012 · 3 comments
Open

websocket closed on first command #2

bbergstrom opened this issue Nov 7, 2012 · 3 comments
Labels

Comments

@bbergstrom
Copy link

I get this error in the stdout:
msp-005053:~ bbergstrom$ nirvana websocket error: undefined method `encoding' for nil:NilClass

I am using ruby 1.9.3.

@bbergstrom
Copy link
Author

Same result with ruby 1.8.7.

@bbergstrom
Copy link
Author

Running with the debug flag I get a more descriptive error:

Exception `NoMethodError' at /Users/bbergstrom/.rvm/gems/ruby-1.9.3-p194/gems/em-websocket-0.3.8/lib/em-websocket/connection.rb:146 - undefined method `encoding' for nil:NilClass
Exception `NoMethodError' at /Users/bbergstrom/.rvm/gems/ruby-1.9.3-p194/gems/em-websocket-0.3.8/lib/em-websocket/connection.rb:87 - undefined method `encoding' for nil:NilClass
nirvana websocket error: undefined method `encoding' for nil:NilClass

I think this is being introduced from a definition in my .irbrc or .riplrc. I will try excluding them.

@cldwalker
Copy link
Owner

I haven't used nirvana in a while but I"m open to a pull if this is an issue for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants