通过Daniel Kehoe的Learn Ruby on Rails书。让教程成功发布到开发中的MailChimp列表。推到heroku,并测试。提交电子邮件地址以加入简报时,会在日志中收到错误 -
2016-09-08T19:54:14.872341 + 00:00 app [web.1]:已完成500内部 服务器错误12毫秒(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 (无法打开与key.api.mailchimp.com:443的TCP连接 (getaddrinfo:名称或服务未知)@ 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:在'create'
有关如何排除故障的建议将不胜感激。