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

Not compatible with 'mount Resque::Server' in routes #21

Closed
rochers opened this issue Jan 29, 2014 · 5 comments
Closed

Not compatible with 'mount Resque::Server' in routes #21

rochers opened this issue Jan 29, 2014 · 5 comments

Comments

@rochers
Copy link

rochers commented Jan 29, 2014

I am getting a hard Rack error when I try to access my resque web interface:


NoMethodError at /resque/web
undefined method `split' for nil:NilClass

Ruby /Users/rocher/.rvm/gems/ruby-2.1.0/gems/font_assets-0.1.10/lib/font_assets/middleware.rb: in extension, line 61
Web GET localhost.dev/resque/web
Jump to:
GETPOSTCookiesENV
Traceback (innermost first)

/Users/rocher/.rvm/gems/ruby-2.1.0/gems/font_assets-0.1.10/lib/font_assets/middleware.rb: in extension
"." + path.split("?").first.split(".").last...
/Users/rocher/.rvm/gems/ruby-2.1.0/gems/font_assets-0.1.10/lib/font_assets/middleware.rb: in set_headers!
if ext = extension(path) and font_asset?(ext)...


The line in my routes.rb is:
mount Resque::Server, at: '/resque/web'

Any thoughts on a workaround / root cause or should I fork and fix?

@jjb
Copy link

jjb commented Feb 25, 2014

had the same problem: sidekiq/sidekiq#1514

@gaganawhad has a fix here: #17

in the comments there, @ericallam says that another commit may have fixed it already

@ericallam
Copy link
Owner

Could you test out 01861d9 and see if that fixes the problem?

@jjb
Copy link

jjb commented Feb 25, 2014

01861d9 works!

@ericallam
Copy link
Owner

Just cut v0.1.11 gem with this fix. Thanks for checking that out for me!

@gaganawhad
Copy link

Awesome 👍

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

4 participants