workarea-commerce / workarea-emarsys

Other
0 stars 0 forks source link

Emarsys::SaveEmailSignup#perform raises undefined method `utc' for nil:NilClass #2

Closed ryaan-anthony closed 5 years ago

ryaan-anthony commented 5 years ago

Escher no longer provides a fallback for current_time: https://github.com/emartech/escher-ruby/blob/master/lib/escher/auth.rb#L9

vs previous: https://github.com/emartech/escher-ruby/blob/v1.0.0/lib/escher/auth.rb#L9

workarea-emarsys-1.0.1 escher-1.0.2

ryaan-anthony commented 5 years ago

backtrace:

/workarea/vendored_gems/ruby/2.4.0/gems/escher-1.0.2/lib/escher/auth.rb:266:in `long_date'
/workarea/vendored_gems/ruby/2.4.0/gems/escher-1.0.2/lib/escher/auth.rb:206:in `format_date_for_header'
/workarea/vendored_gems/ruby/2.4.0/gems/escher-1.0.2/lib/escher/auth.rb:25:in `sign!'
/workarea/vendored_gems/ruby/2.4.0/gems/workarea-emarsys-1.0.1/app/lib/workarea/emarsys/gateway.rb:55:in `sign_request'
/workarea/vendored_gems/ruby/2.4.0/gems/workarea-emarsys-1.0.1/app/lib/workarea/emarsys/gateway.rb:19:in `create_contact'
/workarea/vendored_gems/ruby/2.4.0/gems/workarea-emarsys-1.0.1/app/workers/workarea/emarsys/save_email_signup.rb:25:in `perform'
meowsus commented 5 years ago

This has been resolved with #3. Closing.