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
NoMethodError (undefined method `bytesize' for Rack::Utils:Module): #423
Comments
I'm seeing something similar. |
I got the same: I worked around it by adding rack_utils_patch.rb to config/initializers/ with the following content: module Rack
end |
Hello, i am usng nginx + unicorn in production env, but when my stand alone server receives a request i get this erro at log/websocket_rails_server.log
And in line 62 of http.rb ([https://github.com/websocket-rails/websocket-rails/blob/master/lib/websocket_rails/connection_adapters/http.rb]) we have this code block:
I searched at Rack::Utils lib for and the method bytesize does not exists, so a open my vendor/bundle/ruby/2.3.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters/http.rb file end changed this:
size = Rack::Utils.bytesize(c)
to this:
size = c.bytesize
and it worked. I supose its a websocket-rails bug, could u help ?
The text was updated successfully, but these errors were encountered: