我创建的应用程序部署在Heroku上轨。 同时, exception_notification
宝石启用。
当它在开发设置的ActionMailer到Gmail,一切都很好,并通过Gmail发送地址的通知。
但是,当涉及到生产环境在Heroku上,我得到当服务器尝试发送电子邮件以下错误。
ActionView::Template::Error (code converter not found (UTF-8 to UTF-16))
谁能告诉我这里发生了什么?
我创建的应用程序部署在Heroku上轨。 同时, exception_notification
宝石启用。
当它在开发设置的ActionMailer到Gmail,一切都很好,并通过Gmail发送地址的通知。
但是,当涉及到生产环境在Heroku上,我得到当服务器尝试发送电子邮件以下错误。
ActionView::Template::Error (code converter not found (UTF-8 to UTF-16))
谁能告诉我这里发生了什么?
(见这个问题有人提出在主存储库在这里 ),但至今没有解决。
你可能想看看这个叉子的exception_notification宝石,特别是这次提交它试图解决这个问题: https://github.com/alanjds/exception_notification/commit/048fc6be972189e62ca3b9453d19233ec5773016
要使用这个叉子我指着宝石吧,就像这样:
的Gemfile:
gem 'exception_notification', git: 'git://github.com/alanjds/exception_notification.git'
这解决了这个问题对我来说。
快速调整至hananamar的解决方案,否则你会得到一个错误:
gem 'exception_notification', :git => 'git://github.com/alanjds/exception_notification.git', :require => 'exception_notifier'
我知道这是一个古老的职位,但因为我前几天得到了同样的问题,我想在这里分享我解决它迫使最新版本的宝石在我的Heroku应用程序。
gem 'exception_notification', '3.0.1'
我想这个问题是与3.0.0版本,并将其固定在3.0.1。