Going through Daniel Kehoe's Learn Ruby on Rails book. Have tutorial successfully posting to MailChimp list in development. Pushed to heroku, and tested. When submitting email address to join newsletter, get error in logs -
2016-09-08T19:54:14.872341+00:00 app[web.1]: Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) 2016-09-08T19:54:14.872876+00:00 app[web.1]: 2016-09-08T19:54:14.872878+00:00 app[web.1]: Gibbon::MailChimpError (Failed to open TCP connection to key.api.mailchimp.com:443 (getaddrinfo: Name or service not known) @title=nil, @detail=nil, @body=nil, @raw_body=nil, @status_code=nil): 2016-09-08T19:54:14.872879+00:00 app[web.1]:
app/models/visitor.rb:10:in subscribe' 2016-09-08T19:54:14.872880+00:00 app[web.1]:
app/controllers/visitors_controller.rb:10:in `create'
Suggestions on how to troubleshoot would be appreciated.