Giter Site home page Giter Site logo

Comments (12)

der-flo avatar der-flo commented on May 19, 2024

Jep, I can confirm this.

from airbrake.

seanmcoleman avatar seanmcoleman commented on May 19, 2024

This is also happening to me.

from airbrake.

iurimatias avatar iurimatias commented on May 19, 2024

same here, please see #19

from airbrake.

ekampf avatar ekampf commented on May 19, 2024

same here

from airbrake.

iurimatias avatar iurimatias commented on May 19, 2024
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.

jcode avatar jcode commented on May 19, 2024

confirmed for me using Rails 2.3.14 and Ruby 1.8.7

from airbrake.

humandoing avatar humandoing commented on May 19, 2024

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.

msepcot avatar msepcot commented on May 19, 2024

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.

humandoing avatar humandoing commented on May 19, 2024

Yup, fair enough. I just figured since it seems to be expecting an Error object, might as well give it one.

from airbrake.

stuartchaney avatar stuartchaney commented on May 19, 2024

Guys thanks for raising this. Fix on its way.

from airbrake.

charleseff avatar charleseff commented on May 19, 2024

+1, waiting for the fix

from airbrake.

apolzon avatar apolzon commented on May 19, 2024

+1, looking forward to fix, thanks for tracking this guys!

from airbrake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.