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

falcon proxy prints an exception if no paths are given #241

Closed
postmodern opened this issue May 10, 2024 · 0 comments · Fixed by #242
Closed

falcon proxy prints an exception if no paths are given #241

postmodern opened this issue May 10, 2024 · 0 comments · Fixed by #242

Comments

@postmodern
Copy link

Noticed that falcon proxy does not print an error message if no paths are given, but instead tries to call .collect on nil.

$ falcon proxy --bind http://localhost:8080
/home/postmodern/.gem/ruby/gems/io-event-1.5.1/lib/io/event/support.rb:27: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
  0.0s    error: Falcon::Command [ec=0x780] [pid=10441] [2024-05-09 18:26:29 -0700]
               |   NoMethodError: undefined method `collect' for nil:NilClass
               |   → .gem/ruby/gems/falcon-0.47.4/lib/falcon/command/paths.rb:15 in `resolved_paths'
               |     .gem/ruby/gems/falcon-0.47.4/lib/falcon/command/proxy.rb:59 in `block in call'
               |     /usr/local/share/gems/gems/console-1.23.2/lib/console/terminal/logger.rb:108 in `call'
               |     /usr/local/share/gems/gems/console-1.23.2/lib/console/filter.rb:138 in `call'
               |     /usr/local/share/gems/gems/console-1.23.2/lib/console/filter.rb:29 in `block (3 levels) in []'
               |     .gem/ruby/gems/falcon-0.47.4/lib/falcon/command/proxy.rb:53 in `call'
               |     .gem/ruby/gems/falcon-0.47.4/lib/falcon/command/top.rb:88 in `call'
               |     .gem/ruby/gems/samovar-2.3.0/lib/samovar/command.rb:21 in `call'
               |     .gem/ruby/gems/falcon-0.47.4/lib/falcon/command.rb:14 in `call'
               |     .gem/ruby/gems/falcon-0.47.4/bin/falcon:26 in `<top (required)>'
               |     bin/falcon:25 in `load'
               |     bin/falcon:25 in `<main>'
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

Successfully merging a pull request may close this issue.

1 participant