title: Failed to open TCP connection to :443 (Connection refused - connect(2) for nil port 443)
body: <p>Using Heroku and Rails 5.2, Sidekiq for background jobs. Job completes. Trying to send an email. Works from the console, but inside the worker, I am getting a consistent error.</p>
  <p>Any idea what causes that error? Strange that the production console works, but the same code in the worker fails.</p>
  <hr />
  <h1>Solved</h1>
  <p>Was actually a rogue unauthenticated API call in the worker.</p>