Excon :: Errors :: Timeout:达到连接超时

时间:2017-01-13 11:00:30

标签: ruby-on-rails sidekiq mandrill excon

我正在使用sidekiq通过Mandrill Apis发送邮件。它工作得很好。但是从过去几天开始,我在sidekiq上收到超时错误,而作业试图随机发送邮件。

  

Excon :: Errors :: Timeout:达到连接超时

我无法找到此错误的实际原因。我正在使用

  • ruby​​'2.1.1'
  • sidekiq'3.5.0'
  • mandrill_mailer'1.1.0'
  • mandrill-api'1.0.53'

这是完整的错误

2017-01-11T17:34:06.068Z 3690 TID-otkzvfo0c WARN: Excon::Errors::Timeout: connect timeout reached
2017-01-11T17:34:06.068Z 3690 TID-otkzvfo0c WARN: /home/shared/bundle/ruby/2.1.0/gems/excon-0.45.4/lib/excon/socket.rb:139:in `rescue in block in connect'
/home/shared/bundle/ruby/2.1.0/gems/mandrill-api-1.0.53/lib/mandrill.rb:35:in `call'
/home/shared/bundle/ruby/2.1.0/gems/mandrill-api-1.0.53/lib/mandrill/api.rb:921:in `send_template'
/home/shared/bundle/ruby/2.1.0/gems/mandrill_mailer-1.1.0/lib/mandrill_mailer/template_mailer.rb:121:in `deliver'
/home/app/mailers/sub_request_mailer.rb:651:in `sub_request_approved_location'
/home/shared/bundle/ruby/2.1.0/gems/mandrill_mailer-1.1.0/lib/mandrill_mailer/core_mailer.rb:290:in `call'
/home/shared/bundle/ruby/2.1.0/gems/mandrill_mailer-1.1.0/lib/mandrill_mailer/core_mailer.rb:290:in `method_missing'

1 个答案:

答案 0 :(得分:0)

0.45.4是excon的旧版本(最新版本为0.54.0)。更新应该是安全的,并且是减少可能原因的良好下一步。