4

I am trying to access the sidekiq web however I am getting a blank page. No error or message.

I am using the following env.:

ruby 2.6.3
Rails 6.0.2.1 (inc. zeitwerk)
rack 2.1.2
sidekiq 6.0.4

If I am grading sidekiq down to version 5.2.7 without zeitwerk, I get no content from the sidekiq web as well. So this must be a generall issue.

If I access the sidekiq web a blank page / html body is returned. Thin show the following requests:

Started GET "/admin/sidekiq" for ::1 at 2020-02-07 11:32:58 +0100
Started GET "/admin/sidekiq/stylesheets/bootstrap.css" for ::1 at 2020-02-07 11:32:58 +0100
Started GET "/admin/sidekiq/stylesheets/application.css" for ::1 at 2020-02-07 11:32:58 +0100
Started GET "/admin/sidekiq/stylesheets/application-dark.css" for ::1 at 2020-02-07 11:32:58 +0100

Any idea is appreciated

Chris
  • 318
  • 1
  • 15

2 Answers2

4

rack version 2.1.2 is buggy. I have been downgrading to version 2.0.8.

GemFile

gem 'rack', "2.0.8"

Chris
  • 318
  • 1
  • 15
3

Update

Fixed on new_relic_rpm >= 6.9.0

There was an issue with Rack versions above 2.0.8 where using agent-based Browser instrumentation injection causing Content-Length headers to not match the content size, which in turns causes content truncation in some cases.

https://github.com/newrelic/newrelic-ruby-agent/pull/312

Federico Moya
  • 722
  • 5
  • 5
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/28861098) – Rob Apr 30 '21 at 10:25
  • @Rob Thanks for the feedback. I have updated the answer to follow that criteria. Let me know if you find it insufficient. – Federico Moya May 03 '21 at 00:10