我正在使用 sidekiq 通过 Mandrill APIs 发送邮件。一切正常。但是从过去几天开始,我在 sidekiq 中收到超时错误,而工作尝试随机发送邮件。
Excon::Errors::Timeout: 已达到连接超时
我无法找到此错误的实际原因。我在用
- 红宝石'2.1.1'
- sidekiq '3.5.0'
- mandrill_mailer '1.1.0'
- 山魈-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'