Note that there are some explanatory texts on larger screens.

plurals
  1. POMandrill-api Excon::Errors::SocketError
    primarykey
    data
    text
    <p>I am using Mandrill-api in Ruby to programmatically send out transactional email.</p> <p>I have (more or less) the following line in my rails app, </p> <pre><code>mandrill ||= Mandrill::API.new const(:API)[:MANDRILL_APIKEY] ... (constructing the message, content, etc) mandrill.messages.send_template templ, template_content, message, true </code></pre> <p>The problem is when running in production, it returns the following error <strong>once in a while</strong>.</p> <pre><code>Excon::Errors::SocketError (EOFError (EOFError)): app/mailers/mailer.rb:24:in `send' .... </code></pre> <p>I have no idea how to debug this issue. If somebody could shed me light on the approach for debugging this, I highly appreciate it. </p> <p>Gems Info:</p> <ul> <li>mandrill-api (1.0.33)</li> <li>excon (0.16.10)</li> </ul> <p>Production env:</p> <pre><code> sudo bundle exec rake RAILS_ENV=production about About your application's environment Ruby version 1.9.3 (x86_64-linux) RubyGems version 1.8.11 Rack version 1.4 Rails version 3.2.13 Active Record version 3.2.13 Action Pack version 3.2.13 Active Resource version 3.2.13 Action Mailer version 3.2.13 Active Support version 3.2.13 Middleware Rack::Cache, Rack::Lock, #&lt;ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001e72330&gt;, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport Environment production Database adapter mysql2 </code></pre> <p>Running on:</p> <p>Apache Server: Apache/2.2.22 (Ubuntu)</p> <p>Passenger: 3.0.14</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload