airbrake

Error reporting when sending emails with delayed_job

流过昼夜 提交于 2020-01-12 14:26:23
问题 What's the proper way to get error reports, when using a tool like AirBrake or ExceptionNotifier from mailing delayed jobs? I tried to creating my own delayed job class, but the mail object created by Mailer.welcome() (or similar) is not serialized correctly. I also tried adding an error(job, exception) method to the PerformableMailer and PerformableMethod classes, but I got more errors generally related to serializing I believe. I tried both psych and sych for the serialization. 回答1: Updated

atos and dwarfdump won't symbolicate my address

北城以北 提交于 2019-12-28 03:23:07
问题 I received a crash report via AirBrake.io that isn't symbolicated. Since the crash report is not in exactly the same format as an Apple crashlog I can't just drop it on XCode as usual, so I took the exact same build from my XCode archive tried to symbolicate it on the commandline. With the following result: $ atos -o kidsapp.app/kidsapp 0x0002fc4c 0x0002fc4c (in kidsapp) I'm absolutely sure I'm using the same build as the crash report is from. So I also tried with dwarfdump: $ dwarfdump -

Using Airbrake in Rails projekt got error while testing

匆匆过客 提交于 2019-12-11 20:13:31
问题 I try to use Airbrake in my Rails 4.2 project, but when I run sudo rake airbrake:test I got this error: rake aborted! Airbrake::Error: the 'default' notifier isn't configured can anyone tell me whats the problem? thanks! 回答1: Sounds like you have inadvertently upgraded to the new Airbrake v5 gem. You can: Follow the migration guide to migrate from airbrake v4 to v5 Lock airbrake to v4, in the gemfile, e.g. something like gem 'airbrake', '~> 4.3' 来源: https://stackoverflow.com/questions

Airbrake error: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

限于喜欢 提交于 2019-12-11 16:33:54
问题 I had set up Airbrake to work in a Django project using pybrake, but 12 days ago it stopped working and I'm trying to debug the problem. I've created a little 'test project' with a Pipfile and an airbrake_test.py (where I've scrambled the project key and ID): (pybrake_test2-cU2-tsuL) bash-3.2$ ls Pipfile Pipfile.lock airbrake_test.py Here is the airbrake_test.py : import os import logging import pybrake os.environ['AIRBRAKE_PROJECT_ID'] = '112113' os.environ['AIRBRAKE_PROJECT_KEY'] =

Error reporting when sending emails with delayed_job

对着背影说爱祢 提交于 2019-12-04 03:23:39
What's the proper way to get error reports, when using a tool like AirBrake or ExceptionNotifier from mailing delayed jobs? I tried to creating my own delayed job class, but the mail object created by Mailer.welcome() (or similar) is not serialized correctly. I also tried adding an error(job, exception) method to the PerformableMailer and PerformableMethod classes, but I got more errors generally related to serializing I believe. I tried both psych and sych for the serialization. Updated Solution Overall the solution is quite simple. If you have are doing delayed_job on an Object (like MyClass

ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)

空扰寡人 提交于 2019-11-30 13:39:36
问题 I have a rails app in production that i deployed some changes to the other day. All of a sudden now I get the error ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds) multiple times a day and have to restart puma to fix the issue. I'm completely stumped as to what is causing this. I didn't change anything on my server and the changes I made were pretty simple (add to a view and add to a controller method). I'm not seeing

ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)

不打扰是莪最后的温柔 提交于 2019-11-30 08:02:00
I have a rails app in production that i deployed some changes to the other day. All of a sudden now I get the error ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds) multiple times a day and have to restart puma to fix the issue. I'm completely stumped as to what is causing this. I didn't change anything on my server and the changes I made were pretty simple (add to a view and add to a controller method). I'm not seeing much of anything in the log files. I'm using rails 4.1.4 and ruby 2.0.0p481 Any ideas as to why my

atos and dwarfdump won't symbolicate my address

谁说我不能喝 提交于 2019-11-27 10:45:39
I received a crash report via AirBrake.io that isn't symbolicated. Since the crash report is not in exactly the same format as an Apple crashlog I can't just drop it on XCode as usual, so I took the exact same build from my XCode archive tried to symbolicate it on the commandline. With the following result: $ atos -o kidsapp.app/kidsapp 0x0002fc4c 0x0002fc4c (in kidsapp) I'm absolutely sure I'm using the same build as the crash report is from. So I also tried with dwarfdump: $ dwarfdump --lookup 0x0002fc4c --arch armv7 kidsapp.app.dSYM ----------------------------------------------------------