【问题标题】:Getting assets error when viewing sidekiq UI查看 sidekiq UI 时出现资产错误
【发布时间】:2021-08-17 12:26:21
【问题描述】:

我在尝试查看 sidekiq Web UI 时遇到错误。我在 ruby​​ 3.0.1 上使用 sidekiq 6.2。 rails 版本是6.1.4

错误

NoMethodError - undefined method `first' for #<Rack::Files::Iterator:0x00007f81adeb9930 @path="/Users/antarr/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/sidekiq-6.2.1/web/assets/images/favicon.ico", @ranges=[0..5429], @options={:mime_type=>"image/vnd.microsoft.icon", :size=>5430}>:

另一个错误

undefined method `first' for #<Rack::Files::Iterator:0x000055fd0eb3eb18 @path="/home/azureuser/apps/we-vote/shared/bundle/ruby/3.0.0/gems/sidekiq-5.2.9/web/assets/stylesheets/bootstrap.css", @ranges=[0..93764], @options={:mime_type=>"text/css", :size=>93765}>

【问题讨论】:

    标签: ruby-on-rails ruby sidekiq


    【解决方案1】:

    使用以下命令更新您的机架:

    bundle update rack
    

    【讨论】:

    • 不更新Bundler attempted to update rack but its version stayed the same
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-24
    • 1970-01-01
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    • 2012-08-21
    相关资源
    最近更新 更多