descala/haltr — Issue #24: Error during failsafe response: "\xE2" on US-ASCII
Author: akshatha
Created: 2012-01-10 08:13:37+00:00
State: open

Hi,

Bug Report:
----------------

[akshatha@localhost chiliproject]$ script/server -e production -p 3001
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3:in `': iconv will be deprecated in the future, use String#encode instead.
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3001
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21.
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/gettext-2.1.0/lib/gettext/runtime/locale_path.rb:20: Use RbConfig instead of obsolete and deprecated Config.
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-01-10 13:17:57] INFO WEBrick 1.3.1
[2012-01-10 13:17:57] INFO ruby 1.9.3 (2011-10-30) [x86_64-linux]
[2012-01-10 13:17:57] INFO WEBrick::HTTPServer#start: pid=9589 port=3001
----------------------------------------------------------------------------------------------------------
When I click on payment tab in chiliproject, I got the below error.

[2012-01-10 13:18:56] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
Error during failsafe response: "\xE2" on US-ASCII
[2012-01-10 13:19:00] ERROR NoMethodError: undefined method `each' for nil:NilClass
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.1.3/lib/rack/utils.rb:324:in `initialize'
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.1.3/lib/rack/utils.rb:318:in `new'
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.1.3/lib/rack/utils.rb:318:in `new'
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.1.3/lib/rack/content_length.rb:14:in `call'
/home/akshatha/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.1.3/lib/rack/handler/webrick.rb:48:in `service'
/home/akshatha/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/akshatha/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/akshatha/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-------------------------------
Ruby: 1.9.3 or 1.9.2 ( I use rvm )
Rails: 2.3.14
Fedora 15
Haltr plugin 1.0
Chiliproject v3.0.0beta
-------------------------------
I am running haltr plugin in chiliproject, when I click on payment tab I get this bug.

"Error during failsafe response: "\xE2" on US-ASCII".

for second time if we click on the payment tab I get this bug.

NoMethodError in Payments#index
Showing vendor/plugins/haltr/app/views/payments/index.html.erb where line #15 raised:
undefined method `first_key' for nil:NilClass

Is it encoding issue with ruby1.9? they say it is fixed in 1.9.3. where the Payment_Controller fails? Invoice tab is working fine. What is the error in payment tab? Why it is failing to render "US-ASCII"?

Please guide me to solve this issue.

Thanks & Regards
Akshatha