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

Ruby 3.0.0 -- every webserver seems to error with "wrong number of arguments (given 2, expected 1) (ArgumentError)" #76

Open
alilland opened this issue Feb 15, 2022 · 2 comments

Comments

@alilland
Copy link

alilland commented Feb 15, 2022

On a fresh app, it looks like shotgun does not like something (running ruby 3.0 >)

getting the following error with thin

$ shotgun --server=thin --port=6000 config.ru
== Shotgun/Thin on http://127.0.0.1:6000/
/Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/rack-2.2.3/lib/rack/handler/thin.rb:11:in `run': wrong number of arguments (given 2, expected 1) (ArgumentError)
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/shotgun-0.9.2/bin/shotgun:156:in `<top (required)>'
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `load'
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `<main>'

getting the same with puma

$ shotgun --server=puma --port=6000 config.ru
== Shotgun/Puma on http://127.0.0.1:6000/
/Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/puma-5.6.2/lib/rack/handler/puma.rb:63:in `run': wrong number of arguments (given 2, expected 1) (ArgumentError)
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/shotgun-0.9.2/bin/shotgun:156:in `<top (required)>'
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `load'
        from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `<main>'
@gonubana
Copy link

gonubana commented Mar 3, 2022

delonnewman@762eae9 solved it for me.

@yaroslavrick
Copy link

Same error with ruby 3.2.1

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

3 participants