#1017 new
Ignacio Huerta

Rails 3.2: errors are not shown in the browser in development mode

Reported by Ignacio Huerta | June 11th, 2012 @ 06:05 PM

When you make a typo in Dryml or in one of the views, Rails usually prints the trace in the browser, which is really helpful. It seems that some change in Rails 3.2 to way exceptions are managed has broken this feature.

This is the error I'm seeing:

  Error during failsafe response: private method `status_code' called for #<ActionDispatch::ExceptionWrapper:0x000000069c1ae8>
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb:75:in `render_exception'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb:61:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.5/lib/rails/rack/logger.rb:26:in `call_app'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.5/lib/rails/rack/logger.rb:16:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.5/lib/action_dispatch/middleware/request_id.rb:22:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.5/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.5/lib/action_dispatch/middleware/static.rb:62:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.5/lib/rails/engine.rb:479:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.5/lib/rails/application.rb:220:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.5/lib/rails/rack/log_tailer.rb:17:in `call'
  /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
  /home/ignacio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
  /home/ignacio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
  /home/ignacio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

After this, the real error is printed out in the log. This happens whether the error is in Dryml or in the model.

I haven't been able to track the source in Hobo, but I suppose it's somewhere, because this doesn't happen in a pure Rails 3.2 application.

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen July 12th, 2012 @ 05:27 PM

    This appears to be a bug in will_paginate. Please use github:/bryanlarsen/will_paginate for now. I'll try and push the fix upstream.

  • Bryan Larsen

    Bryan Larsen July 12th, 2012 @ 05:55 PM

    There's a good chance that it was luck: the other problem I was having at the same time looked lt might have been related to will_paginate. I do know that I found the problem by grepping for status_code in the will_paginate code. Why I did that, I'm not sure. It might have been because my fiddling with the debugger inside of the Rails source code showed me a back trace including will_paginate or it might have been serendipity due to my other problem.

  • Jason E. Bischof

    Jason E. Bischof January 2nd, 2022 @ 05:07 AM

    There's an excellent chance that it became good fortune: the alternative hassle I turned into having at the identical time appeared lt could have been related to will_paginate. I do realize that I observed the trouble via grepping for status_code in the will_paginate code. There is an upsurge within the demand for far flung operating startups which by some means shows that cutting-edge faraway workers might need to retain running remote development team inside the destiny as nicely. A report from Owl Labs additionally says that forty two% remote people are wondering to paintings remotely extra within the next five years.

  • Gail S. Cox

    Gail S. Cox January 2nd, 2022 @ 05:32 AM

    When you are making a typo in Dryml or in one of the perspectives, Rails usually prints the trace in the browser, that is without a doubt helpful. It appears that some trade in Rails 3.2 to way exceptions are controlled has damaged this feature. This software program will include a whole lot of features. Various packages might need better technology if you want to work nicely. Remember that your competition are possibly improving their structures at this factor. Through Microsoft Dynamics ERP coder answers, you may come up with new matters to help your commercial enterprise live relevant. Microsoft Dynamics is thought to be very complicated. This may be complex for people who might not be too familiar with it. You could need to discover a developer which can work the Microsoft ERP Software nicely.

  • Sarah J. Pratt

    Sarah J. Pratt January 2nd, 2022 @ 05:35 AM

    When you make a typo in Dryml or in one of the views, Rails normally prints the trace in the browser, that is virtually helpful. It seems that a few alternate in Rails three.2 to way exceptions are controlled has broken this option. Know the precise role that you need the QA engineer to fill in your team. You might also have a crew of QA engineers with bpo services the intention to include their roles and obligations. Be unique about what you're trying to find. It might be simpler as a way to slim down your choices. Consider the quantity that you have to pay. If you need to rent remote QA engineer, this can be greater price-efficient. Just ensure that you may be able to communicate with the engineer nicely.

  • Nelson

    Nelson January 2nd, 2022 @ 10:07 PM

    This may be complex for people who might not be too familiar with it. You could need to discover a developer which can work the Microsoft ERP Software nicely.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages