Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `host=' for #<Raven::Event:0x0000000d1621e8> #678

Closed
gingerlime opened this issue May 17, 2017 · 6 comments

Comments

@gingerlime
Copy link

I'm seeing this error in my logs a few times ...

Exception: NoMethodError: undefined method `host=' for #<Raven::Event:0x0000000d1621e8>
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:67:in `public_send'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:67:in `block in initialize'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:67:in `each_pair'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:67:in `initialize'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:107:in `new'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/event.rb:107:in `from_exception'
/var/local/kenhub/kenhub/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.4.0/lib/raven/instance.rb:114:in `capture_type'
@nateberkopec
Copy link
Contributor

Are you calling Raven.capture manually anywhere?

This looks specific to your usage, so I need more details.

@gingerlime
Copy link
Author

We use the Semantic Logger appender, which uses Raven.capture_message or Raven.capture_exception

@gingerlime
Copy link
Author

Looking at the code, I suspect the problem originates here. The context isn't set inside extra in the same way it's done below

(I contributed some small fixes to this code, but didn't create the original version. I think I can submit a PR to fix it though)

@gingerlime
Copy link
Author

gingerlime commented May 23, 2017

I opened an issue on semantic_logger, and I think the problem is there. I think we can close this now. I'll update if I find anything. Sorry for the false alarm, but indirectly it helped me spot the issue (hopefully) :)

@nateberkopec
Copy link
Contributor

No problem!

@reidmorrison
Copy link

@nateberkopec would you mind looking at the appender in Semantic Logger and let us know if anything should be changed to better support logging to Raven?
https://github.com/rocketjob/semantic_logger/blob/master/lib/semantic_logger/appender/sentry.rb

@gingerlime created this ticket to track any changes reidmorrison/semantic_logger#74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants