need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

166 views
Skip to first unread message

tom

unread,
Dec 5, 2016, 11:19:28 AM12/5/16
to Ruby on Rails: Talk
it all worked locally, and now i am in production and get that:


ArgumentError (wrong number of arguments (given 3, expected 1..2)):
  devise-async (0.7.0) lib/devise/async/model.rb:27:in `send_devise_notification'
  devise (4.2.0) lib/devise/models/confirmable.rb:117:in `send_confirmation_instructions'
  devise (4.2.0) lib/devise/models/confirmable.rb:132:in `block in resend_confirmation_instructions'
  devise (4.2.0) lib/devise/models/confirmable.rb:232:in `pending_any_confirmation'
  devise (4.2.0) lib/devise/models/confirmable.rb:131:in `resend_confirmation_instructions'
  devise (4.2.0) lib/devise/models/confirmable.rb:303:in `send_confirmation_instructions'
  devise (4.2.0) app/controllers/devise/confirmations_controller.rb:9:in `create'
  actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'


this happens whenever devise wants to send out emails.

im using sidekiq, rails 4.2

thx
t

tom

unread,
Dec 6, 2016, 9:18:26 AM12/6/16
to Ruby on Rails: Talk
anyone?

thx

Colin Law

unread,
Dec 6, 2016, 10:14:22 AM12/6/16
to Ruby on Rails: Talk
On 6 December 2016 at 14:18, tom <toma...@gmail.com> wrote:
> anyone?
>
> thx
>
>
> On Mon, Dec 5, 2016 at 11:18 AM, tom <toma...@gmail.com> wrote:
>>
>> it all worked locally, and now i am in production and get that:
>>
>>
>> ArgumentError (wrong number of arguments (given 3, expected 1..2)):
>> devise-async (0.7.0) lib/devise/async/model.rb:27:in
>> `send_devise_notification'

Are you sure you are using the same versions of gems in both
environments? I presume you have run bundle install in the production
env.

Colin

>> devise (4.2.0) lib/devise/models/confirmable.rb:117:in
>> `send_confirmation_instructions'
>> devise (4.2.0) lib/devise/models/confirmable.rb:132:in `block in
>> resend_confirmation_instructions'
>> devise (4.2.0) lib/devise/models/confirmable.rb:232:in
>> `pending_any_confirmation'
>> devise (4.2.0) lib/devise/models/confirmable.rb:131:in
>> `resend_confirmation_instructions'
>> devise (4.2.0) lib/devise/models/confirmable.rb:303:in
>> `send_confirmation_instructions'
>> devise (4.2.0) app/controllers/devise/confirmations_controller.rb:9:in
>> `create'
>> actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:4:in
>> `send_action'
>>
>>
>> this happens whenever devise wants to send out emails.
>>
>> im using sidekiq, rails 4.2
>>
>> thx
>> t
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMfrtQTh71gOAb3HGdB%2BG%2BcForPMfuUTosB7gwrqwWwNWg%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.

Jerry Clinesmith

unread,
Dec 6, 2016, 11:55:25 AM12/6/16
to Ruby on Rails: Talk
devise_async doesn't support Devise 4:  https://github.com/mhfs/devise-async/issues/94

Good news, you don't really need it, Devise has a fix to integrate with ActiveJob so you can remove the async gem and change your Devise model:

tom

unread,
Dec 6, 2016, 12:13:15 PM12/6/16
to Ruby on Rails: Talk
great - so i would drop that function into the user-model?

thx


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b0a70447-69e1-4781-8a84-a430077f67aa%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages