sidekiq_monitor icon indicating copy to clipboard operation
sidekiq_monitor copied to clipboard

undefined method `has_key?' for 10:Fixnum

Open vanso-waqar opened this issue 9 years ago • 2 comments

Hi, I am getting undefined method `has_key?' for 10:Fixnum error on '/sidekiq/queues' page. When I traced the api/controllers/queues_controller.rb I found an issue with this line

status_counts = Sidekiq::Monitor::Job.where(queue: queue).count(group: 'status')

It works if I change it to

status_counts = Sidekiq::Monitor::Job.where(queue: queue).group_by(&:status)

Please suggest a work around for this.

vanso-waqar avatar Mar 30 '15 12:03 vanso-waqar

I've submitted a pull request that resolves this issue: #37

losadaem avatar May 07 '15 15:05 losadaem

seeing this issue as well w/ Rails 4.2.1

shwanton avatar Jul 19 '15 19:07 shwanton