Skip to content

Issue with web-console (4.0.3), rack (2.2.3) and webrick #292

@codingiam

Description

@codingiam

I have a project with:

  • ruby (2.6.5)
  • rails (6.0.3.2)
  • web-console (4.0.3)
  • rack (2.2.3)

I start my application with WEBrick:
bundle exec rails server -u webrick

Whenever an exception occurs instead of getting the web-console UI I get the following error:

ERROR NoMethodError: undefined method `split' for 196974:Integer
	vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/handler/webrick.rb:108:in `block in service'
	vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/utils.rb:446:in `block in each'
	vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/utils.rb:445:in `each'
	vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/utils.rb:445:in `each'
	vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/handler/webrick.rb:99:in `service'
	~/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'
	~/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'
	~/.rvm/rubies/ruby-2.6.5/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'

I was not getting this exception with web-console (4.0.2).

This started appearing with web-console (4.0.3) and it seems related to this change #290.

It looks like following that change "Content-Length" header value is an integer and Rack expects a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions