title: Twilio returning authenticate error for my local machine only
body: <p>My team and I are using <a href="https://www.twilio.com/" rel="nofollow">twilio</a> to send sms messages. Everything seems to work fine on everyone else's local machine (with the same exact code) except twilio always returns an authenticate error to me. I'm sending the messages to their "special number" so it won't actually send a real text message but it still returns an authenticate error. </p>
  
  <p>here's some of our code to send the message:</p>
  
  <pre><code>def send_sms
    self.from_phone_number = CONFIG['live_twilio'] ? self.customer.assigned_phone_number : CONFIG['test_phone_number']
    self.to_phone_number   = CONFIG['live_twilio'] ? self.customer.customer_phone_number : CONFIG['test_phone_number']
  
    begin
      report_to_new_relic_insights
      send_message_with_twilio!
    rescue Twilio::REST::RequestError =&gt; e
      self.error_description = e.message
    end
  
    self.dispatched_at = Time.now
    self.save(validate: false)
  
    return e
  end
  
  def send_message_with_twilio!
    unless self.customer.example_customer?
      twilio_params = {
        from: "+1#{from_phone_number}",
        to:   "+1#{to_phone_number}",
        body: self.text
      }
  
      if ENV['RECORD_TWILIO_STATUSES'].in?(['1', 'true'])
        twilio_params[:status_callback] = "#{CONFIG['secure_domain']}/messages/#{id}/update_status"
      end
  
      client.account.messages.create(twilio_params)
    else
      # @onboarding_flow
      # don't send the actual SMS to the example customer
      self.customer.send_reply_as_example_customer! if self.customer.first_reply?
    end
  end
  
  def client
     @client ||= begin
       account_sid = ENV['ACCOUNT_SID'] || CONFIG['account_sid']
       auth_token  = ENV['AUTH_TOKEN']  || CONFIG['auth_token']
       Twilio::REST::Client.new account_sid, auth_token
     end
  end
  </code></pre>
  
  <p>every time this line runs: <code>client.account.messages.create(twilio_params)</code></p>
  
  <p>it returns authenticate error. it works on every other local machine except for mine. all of the code is exactly the same, the auth tokens are exactly the same. any ideas what the problem could be? (the auth tokens are getting pulled from config.yml</p>
  
  <p>More info: even when running the bare bones twilio client in console with the same exact info in both machines, mine returns an error and my coworkers returns valid</p>