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.










share|improve this question


























    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.










    share|improve this question
























      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.










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      kouki.kitamura

      11




      11





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          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






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

          ts Property 'filter' does not exist on type '{}'

          Notepad++ export/extract a list of installed plugins