Search code examples
ruby-on-railsruby-on-rails-4sidekiqrails-activejob

Error while queueing an email with Sidekiq


When sending an email with sidekiq as a queue using deliver_later. I'm getting this error:

ActiveJob::DeserializationError: Error while trying to deserialize arguments: fe_sendauth: no password supplied

The exact same email is sent without any problem using deliver_now in the console.

Any thoughts?


Solution

  • The RACK_ENV environment variable is needed (besides RAILS_ENV).

    So, for production:

    export RACK_ENV=production