sidekiq-scheduler / sidekiq-scheduler

Lightweight job scheduler extension for Sidekiq

Home Page:https://sidekiq-scheduler.github.io/sidekiq-scheduler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 for sidekiq/stylesheets-scheduler/recurring_jobs.css

RobsonKing opened this issue · comments

Using:

sidekiq (6.5.8)
sidekiq-pro (5.5.8)
sidekiq-scheduler (4.0.3)

When I try and view Sidekiq Web UI, the Recurring Jobs tab loads, but the css file 404s

_DEVELOPMENT__Sidekiq_Pro

I found this pr #394 where the path was renamed to sidekiq/stylesheets-scheduler/recurring_jobs.css and that is what I am trying to fetch.

I tried serving some of my own css out of my own asset directory and found:

sidekiq_rb_—atvenu__SSH__rmk1

It seems like any path that starts with /stylesheets will not work?

I think this has something to do with your application, if you clone this repo https://github.com/sidekiq-scheduler/sample-rails locally and run

bundle install
yarn install

and then run

bin/rails s

and access localhost:3000/sidekiq/recurring-jobs, does it load the stylesheets? At least for me, it works

image

Thanks so much for the sample project! I was able to modify it and reproduce my problem on an older version of rails (5.1.6.2🤮 ). If anyone else runs into this, the problem was an old version of rack

rack 2.1.4 exhibits this behaviour
rack 2.2.4 works

Happy to know you were able to find out the root of the problem!