exception-notification

Rails exception notifier in rake tasks

孤街醉人 提交于 2020-01-20 03:08:30
问题 I have a simple rails application with a few controller and some rake tasks. A couple of tasks are executed by cron configured with whenever gem. One of my task is executed daily and sometime it raises an exception and by default I receive this warning by cron rake aborted! undefined method `parameterize' for nil:NilClass Tasks: TOP => mailboxes:clean_processed (See full trace by running task with --trace) I want to debug what's happening and for this reason I've just installed this exception

exception_notification gem raises ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) only on Heroku production mode

ⅰ亾dé卋堺 提交于 2020-01-12 11:50:53
问题 I create rails app deployed on Heroku. also, exception_notification gem enabled. when it is on development setup ActionMailer to Gmail, everything is fine and sends a notification from Gmail address. but when it comes to production environment on Heroku, I get following error when server trying to send a email. ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) Could anyone tell me what's happening here? 回答1: The issue was raised on the main repository (see here), but so

exception_notification gem raises ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) only on Heroku production mode

旧巷老猫 提交于 2019-12-03 22:35:28
I create rails app deployed on Heroku. also, exception_notification gem enabled. when it is on development setup ActionMailer to Gmail, everything is fine and sends a notification from Gmail address. but when it comes to production environment on Heroku, I get following error when server trying to send a email. ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) Could anyone tell me what's happening here? The issue was raised on the main repository (see here ), but so far was not addressed. You might want to take a look at this fork to the exception_notification gem,

Rails exception notifier in rake tasks

佐手、 提交于 2019-11-29 01:28:37
I have a simple rails application with a few controller and some rake tasks. A couple of tasks are executed by cron configured with whenever gem . One of my task is executed daily and sometime it raises an exception and by default I receive this warning by cron rake aborted! undefined method `parameterize' for nil:NilClass Tasks: TOP => mailboxes:clean_processed (See full trace by running task with --trace) I want to debug what's happening and for this reason I've just installed this exception notification gem with this line in my Gemfile gem "exception_notification", "~> 2.4.1", :require =>

Rails Mailer “Net::OpenTimeout: execution expired” Exception on production server only

。_饼干妹妹 提交于 2019-11-28 06:14:27
I am using Ruby MRI 2.0.0 and Rails 3.2.12 on a Ubuntu 12.04 TLS VPS and attempting to setup email notifications in my app. It was working fine a few days ago, but not anymore. My web host is OVH. My SMTP settings: config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => 'sender@gmail.com', :password => 'secret', :authentication => 'plain', :enable_starttls_auto => true } Using RAILS_ENV=production rails console : class MyMailer < ActionMailer::Base def test

Rails Mailer “Net::OpenTimeout: execution expired” Exception on production server only

耗尽温柔 提交于 2019-11-27 05:39:05
问题 I am using Ruby MRI 2.0.0 and Rails 3.2.12 on a Ubuntu 12.04 TLS VPS and attempting to setup email notifications in my app. It was working fine a few days ago, but not anymore. My web host is OVH. My SMTP settings: config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => 'sender@gmail.com', :password => 'secret', :authentication => 'plain', :enable_starttls