To track erros, raven-raven and grape do not work
up vote
0
down vote
favorite
I would like to error tracking with Sentry. My development enviroment is folloging:
- Rails 4.1.6
- grape 0.10.1
- sentry-raven 2.7.4
I would like to capture errors and send to Sentry using folloing codes.
rescue_from :all do |e|
Raven.capture_exception(e)
end
To use above cose, raise error. The Errors is:
> undefined method `' for nil:NilClass
rack-mount (0.8.3) lib/rack/mount/route_set.rb, line 154
--------------------------------------------------------
``` ruby
149 old_params = env[@parameters_key]
150 env[@parameters_key] = (old_params || {}).merge(params)
151
152 result = route.app.call(env)
153
> 154 if result[1][X_CASCADE] == PASS
155 env[@parameters_key] = old_params
156 else
157 return result
158 end
159 end
if you know the things I have to do, Please tell me that.
ruby-on-rails
add a comment |
up vote
0
down vote
favorite
I would like to error tracking with Sentry. My development enviroment is folloging:
- Rails 4.1.6
- grape 0.10.1
- sentry-raven 2.7.4
I would like to capture errors and send to Sentry using folloing codes.
rescue_from :all do |e|
Raven.capture_exception(e)
end
To use above cose, raise error. The Errors is:
> undefined method `' for nil:NilClass
rack-mount (0.8.3) lib/rack/mount/route_set.rb, line 154
--------------------------------------------------------
``` ruby
149 old_params = env[@parameters_key]
150 env[@parameters_key] = (old_params || {}).merge(params)
151
152 result = route.app.call(env)
153
> 154 if result[1][X_CASCADE] == PASS
155 env[@parameters_key] = old_params
156 else
157 return result
158 end
159 end
if you know the things I have to do, Please tell me that.
ruby-on-rails
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to error tracking with Sentry. My development enviroment is folloging:
- Rails 4.1.6
- grape 0.10.1
- sentry-raven 2.7.4
I would like to capture errors and send to Sentry using folloing codes.
rescue_from :all do |e|
Raven.capture_exception(e)
end
To use above cose, raise error. The Errors is:
> undefined method `' for nil:NilClass
rack-mount (0.8.3) lib/rack/mount/route_set.rb, line 154
--------------------------------------------------------
``` ruby
149 old_params = env[@parameters_key]
150 env[@parameters_key] = (old_params || {}).merge(params)
151
152 result = route.app.call(env)
153
> 154 if result[1][X_CASCADE] == PASS
155 env[@parameters_key] = old_params
156 else
157 return result
158 end
159 end
if you know the things I have to do, Please tell me that.
ruby-on-rails
I would like to error tracking with Sentry. My development enviroment is folloging:
- Rails 4.1.6
- grape 0.10.1
- sentry-raven 2.7.4
I would like to capture errors and send to Sentry using folloing codes.
rescue_from :all do |e|
Raven.capture_exception(e)
end
To use above cose, raise error. The Errors is:
> undefined method `' for nil:NilClass
rack-mount (0.8.3) lib/rack/mount/route_set.rb, line 154
--------------------------------------------------------
``` ruby
149 old_params = env[@parameters_key]
150 env[@parameters_key] = (old_params || {}).merge(params)
151
152 result = route.app.call(env)
153
> 154 if result[1][X_CASCADE] == PASS
155 env[@parameters_key] = old_params
156 else
157 return result
158 end
159 end
if you know the things I have to do, Please tell me that.
ruby-on-rails
ruby-on-rails
asked yesterday
kouki.kitamura
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372348%2fto-track-erros-raven-raven-and-grape-do-not-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown