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
Sidekiq Web: Unhandled can't convert String into an exact number (TypeError) #6284
Comments
kapso
changed the title
Unhandled can't convert String into an exact number (TypeError)
Sidekiq Web: Unhandled can't convert String into an exact number (TypeError)
May 9, 2024
Your job payload has enqueued_at as a String rather than a Float as Sidekiq expects it. How did you created the job? |
@mperham here's how
Sidekiq config # Web Dashboard
require 'sidekiq/pro/web'
require 'sidekiq-scheduler'
require 'sidekiq-scheduler/web'
Sidekiq.configure_client do |config|
config.redis = { url: Settings.redis.url, ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
config.logger.level = Rails.env.development? ? Logger::INFO : Logger::WARN
# Sidekiq Pro options
Sidekiq::Client.reliable_push! unless Rails.env.test?
# Sidekiq Unique Jobs options
config.client_middleware do |chain|
chain.add SidekiqUniqueJobs::Middleware::Client
end
end
Sidekiq.configure_server do |config|
config.redis = { url: Settings.redis.url, ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
config.logger.level = Rails.env.development? ? Logger::INFO : Logger::WARN
# Default is 5
config.average_scheduled_poll_interval = 2
config.on(:startup) do
Sidekiq.schedule = YAML.safe_load(ERB.new(Rails.root.join('config/schedule.yml').read).result)
SidekiqScheduler::Scheduler.instance.reload_schedule!
end
# Sidekiq Pro options
Sidekiq::Client.reliable_push! unless Rails.env.test?
config.super_fetch!
config.reliable_scheduler!
# Sidekiq Unique Jobs options
config.client_middleware do |chain|
chain.add SidekiqUniqueJobs::Middleware::Client
end
config.server_middleware do |chain|
chain.add SidekiqUniqueJobs::Middleware::Server
end
SidekiqUniqueJobs::Server.configure(config)
SidekiqUniqueJobs.config.lock_info = true
end
if Rails.env.staging? || Rails.env.production?
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
username == Settings.sidekiq.admin.username && password == Settings.sidekiq.admin.password
end
end |
I think you'll need to show us the exact job payload. Can you get it out of Redis with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am seeing this too on
This happens when I try to click on a retry - eg:
sidekiq/retries/1714694009.406673-114bc6736276e28b7fcc90fd
onsidekiq/retries
Maybe related to following issues
The text was updated successfully, but these errors were encountered: