Comments (12)
Jep, I can confirm this.
from airbrake.
This is also happening to me.
from airbrake.
same here, please see #19
from airbrake.
same here
from airbrake.
begin
raise "theexception"
rescue Exception => e
Airbrake.notify(
:error_class => e.class.name,
:error_message => e.try(:message),
:parameters => params,
:backtrace => e.try(:backtrace),
:session => session
)
end
results in NoMethodError (undefined method `backtrace' for #Hash:0x0000010ba8c0a8)
from airbrake.
confirmed for me using Rails 2.3.14 and Ruby 1.8.7
from airbrake.
This is a bug that I found as well. After looking at the code, it looks like the Airbrake.notify method now expects two parameters, the first being an Error object and the 2nd being a Hash. I haven't tested this extensively, but here is what should be an easy workaround (passing a new RuntimeError instance as the first parameter in the call to Airbrake.notify)
Airbrake.notify( RuntimeError.new,
:error_class => e.class.name,
:error_message => e.try(:message),
:parameters => params,
:backtrace => e.try(:backtrace),
:session => session
)
from airbrake.
It's not necessary to pass a RuntimeError
to Airbrake.notify
, simply passing nil
as the first parameter is an easy workaround, but there is still a mismatch between what is expected from the documentation and what is implemented.
from airbrake.
Yup, fair enough. I just figured since it seems to be expecting an Error object, might as well give it one.
from airbrake.
Guys thanks for raising this. Fix on its way.
from airbrake.
+1, waiting for the fix
from airbrake.
+1, looking forward to fix, thanks for tracking this guys!
from airbrake.
Related Issues (20)
- airbrake issues with lack of details HOT 1
- Airbrake does not track DB queries with MongoDB HOT 1
- Some people can get the alarm email, some people can't HOT 2
- APM only showing root paths HOT 1
- Airbrake Gem Attempts to Connect to Database in Databaseless App in Rails 6 HOT 4
- Airbrake 500 Errors HOT 31
- Airbrake and ruby 3.1 versions, change display of ErrorHighlight errors HOT 3
- Premature notification in Airbrake::Sidekiq::RetryableJobsFilter HOT 10
- Airbrake 13 SystemStackError:stack level too deep HOT 13
- Rails 7.0.3 with ruby 3.0.2 undefined method `new' for "Airbrake::Rack::Middleware":String (NoMethodError) HOT 2
- Mention options on how to disable performance/query/job stats HOT 1
- Airbrake seems to conflict with Scout and NR
- Rails 3.2 LTS error: uninitialized constant `Airbrake::Rails::ActiveRecord::Base`
- No clear documentation in terms of information being collected by default which includes PII
- <empty error message> when using a logger with a block HOT 1
- Filter user object fields passed to Airbrake HOT 1
- Use a different replacement per field
- certificate verify failed HOT 34
- Rails check is insufficient
- Exceptions raised during streaming via ActionController::Live are not caught HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbrake.