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

Rack app error handling request #112

Open
codyrickman opened this issue Jan 26, 2023 · 1 comment
Open

Rack app error handling request #112

codyrickman opened this issue Jan 26, 2023 · 1 comment

Comments

@codyrickman
Copy link

Hello, I am using Ruby 2.4.10, Rails 5 on WSL. I recently ran bundle update and now I get this error in rails when running ./bin/webpack-dev-server. If I don't run the dev webpack server, rails compiles it on its own fine, but it takes a long time. The reason I am posting here is because it seems the stack trace points to an error in the rack-proxy module.

2023-01-26 13:16:13 -0500: Rack app error handling request { GET /packs/js/Index-e399cab7acd9e34522df.js }
#<NoMethodError: undefined method then' for #<Array:0x00005621b5f99cf0>> /home/codyrickman/.rvm/gems/ruby-2.4.10/gems/rack-proxy-0.7.6/lib/rack/proxy.rb:27:in extract_http_request_headers'
/home/codyrickman/.rvm/gems/ruby-2.4.10/gems/rack-proxy-0.7.6/lib/rack/proxy.rb:115:in perform_request' /home/codyrickman/.rvm/gems/ruby-2.4.10/gems/webpacker-5.4.3/lib/webpacker/dev_server_proxy.rb:23:in perform_request'
/home/codyrickman/.rvm/gems/ruby-2.4.10/gems/rack-proxy-0.7.6/lib/rack/proxy.rb:87:in call' /home/codyrickman/.rvm/gems/ruby-2.4.10/gems/railties-5.2.8.1/lib/rails/engine.rb:524:in call'
/home/codyrickman/.rvm/gems/ruby-2.4.10/gems/puma-3.12.6/lib/puma/configuration.rb:227:in call' /home/codyrickman/.rvm/gems/ruby-2.4.10/gems/puma-3.12.6/lib/puma/server.rb:706:in handle_request'
/home/codyrickman/.rvm/gems/ruby-2.4.10/gems/puma-3.12.6/lib/puma/server.rb:476:in process_client' /home/codyrickman/.rvm/gems/ruby-2.4.10/gems/puma-3.12.6/lib/puma/server.rb:334:in block in run'
/home/codyrickman/.rvm/gems/ruby-2.4.10/gems/puma-3.12.6/lib/puma/thread_pool.rb:135:in `block in spawn_thread'

@artemas
Copy link

artemas commented Feb 6, 2023

ruby 2.5.9, rails 5.1.7, rack-reverse-proxy master,
57ac1f2#diff-24f5261702ed156369e5777101fa0d8a67095c490512f4e7e97462da2d2f0532R27

have to lock on 0.7.4

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

No branches or pull requests

2 participants