Giter VIP home page Giter VIP logo

airbrake_user_attributes's People

Contributors

ndbroadbent avatar sgrove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

airbrake_user_attributes's Issues

Airbrake incompatibilty

  • airbrake_user_attributes-0.1.6
  • airbrake-3.1.17
Airbrake.notify(Exception.new('oups'))
** [Airbrake] [Airbrake::Sender#send_to_airbrake] Cannot send notification. Error: ArgumentError - wrong number of arguments (0 for 1)
Backtrace:
/Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:34:in `method'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:34:in `block (4 levels) in to_xml'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:31:in `each'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:31:in `block (3 levels) in to_xml'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:30:in `block (2 levels) in to_xml'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:27:in `block in to_xml'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `call'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:175:in `_nested_structures'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:68:in `tag!'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/builder-3.2.2/lib/builder/xmlbase.rb:93:in `method_missing'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake_user_attributes-0.1.6/lib/airbrake_overrides/notice.rb:20:in `to_xml'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake/sender.rb:115:in `prepare_notice'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake/sender.rb:50:in `send_to_airbrake'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake.rb:161:in `send_notice'
    /Users/joel/.rvm/gems/ruby-2.1.3@finalcloud/gems/airbrake-3.1.17/lib/airbrake.rb:126:in `notify'
    (irb):2:in `irb_binding'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/workspace.rb:86:in `eval'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/workspace.rb:86:in `evaluate'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/context.rb:380:in `evaluate'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:492:in `block (2 levels) in eval_input'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:624:in `signal_status'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:489:in `block in eval_input'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `loop'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `catch'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:488:in `eval_input'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:397:in `block in start'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:396:in `catch'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/irb.rb:396:in `start'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/console.rb:90:in `start'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/console.rb:9:in `start'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:in `console'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
    /Users/joel/Documents/WorkData/RubyWorkSpace/KnowledgeCorp/finalcloud/bin/rails:10:in `<top (required)>'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/commands/rails.rb:6:in `call'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/command_wrapper.rb:38:in `call'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:180:in `block in serve'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:153:in `fork'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:153:in `serve'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'
    /Users/joel/.rvm/gems/ruby-2.1.3@global/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /Users/joel/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    -e:1:in `<main>'
** [Airbrake] Environment Info: [Ruby: 2.1.3] [Rails: 4.1.6] [Env: development]
=> nil

If current_user is nil, it kills all error reporting

There are cases where current_user is nil, and won't respond to #attributes. This causes an error in the error reporting, and no error is sent back at all - imagine an error when a user is signing up, current_user will be nil, and if there's an error in the sign-up flow you'll never see it.

License?

Pretty much says it all- what license have you released this code under?

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.