gpt4 book ai didi

ruby-on-rails - Rails 4 : EOFError: end of file reached following any email in DEVELOPMENT only

转载 作者:行者123 更新时间:2023-12-03 14:19:14 25 4
gpt4 key购买 nike

我有使用应用程序身份验证和sidekiq的背景电子邮件作业的设计的Rails应用程序。突然,仅在开发中,我收到以下与尝试从应用程序发送电子邮件相关的错误信息(例如,设计忘记的密码)

     EOFError: end of file reached

奇怪的是,该应用程序正在生产中(使用sendgrid设置了heroku)。我尚未更改任何开发电子邮件设置...。
  ActionMailer::Base.default :from => 'slfwalsh@gmail.com'

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => '@gmail.com',
:user_name => "xxxxx@gmail.com",
:password => "xxxxxxxx",
:authentication => 'plain',
:enable_starttls_auto => true
}

config.action_mailer.default_url_options = { :host => 'localhost:3000' }

我找不到任何可在线解决的内容。我还注意到,使用类似设置的所有正在开发中的应用程序都抛出相同的错误。我尝试使用其他电子邮件地址和密码(再次是gmail),但没有运气...。

最佳答案

对于像Aleksey这样想解决问题的人,他添加了一个有效域。从domain: '@gmail.com'转到domain: "myprojectdomain.com"

关于ruby-on-rails - Rails 4 : EOFError: end of file reached following any email in DEVELOPMENT only,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36551205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com