Sure.

It looks like it is an issue with json.

The sequel instance is using yajl and has no issue with non UTF8
chars.

here is the full backtrace:

400 bad request

"\xE2" from ASCII-8BIT to UTF-8...

"\xE2" from ASCII-8BIT to UTF-8
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/json-1.5.1/lib/json/
common.rb:212:in `encode'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/json-1.5.1/lib/json/
common.rb:212:in `generate'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/json-1.5.1/lib/json/
common.rb:212:in `generate'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rufus-json-0.2.5/lib/
rufus/json.rb:37:in `block in <module:Json>'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rufus-json-0.2.5/lib/
rufus/json.rb:124:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rufus-json-0.2.5/lib/
rufus/json.rb:124:in `encode'
/Users/igagnidz/gitsources/onit/vendor/gems/ruote-sequel-2.2.0/lib/
ruote/sequel/storage.rb:314:in `do_insert'
/Users/igagnidz/gitsources/onit/vendor/gems/ruote-sequel-2.2.0/lib/
ruote/sequel/storage.rb:92:in `put_msg'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/ruote-2.2.0/lib/ruote/
receiver/base.rb:70:in `launch'
/Users/igagnidz/gitsources/onit/vendor/gems/ruote-kit-2.2.0.3/lib/
ruote-kit/resources/processes.rb:38:in `block in <class:Application>'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:865:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:865:in `block in route'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:521:in `instance_eval'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:521:in `route_eval'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:500:in `block (2 levels) in route!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:497:in `catch'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:497:in `block in route!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:476:in `each'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:476:in `route!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:601:in `dispatch!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:411:in `block in call!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `instance_eval'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `block in invoke'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `catch'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:566:in `invoke'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:411:in `call!'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/sinatra-1.0/lib/sinatra/
base.rb:399:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
methodoverride.rb:24:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
static.rb:33:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
methodoverride.rb:24:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
commonlogger.rb:18:in `call'
/Users/igagnidz/gitsources/onit/lib/ruote_security.rb:11:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/string_coercion.rb:25:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
head.rb:9:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
methodoverride.rb:24:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/params_parser.rb:15:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/session/cookie_store.rb:99:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/failsafe.rb:26:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
lock.rb:11:in `block in call'
<internal:prelude>:8:in `synchronize'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
lock.rb:11:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/dispatcher.rb:114:in `block in call'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/reloader.rb:34:in `run'
/Users/igagnidz/gitsources/onit/vendor/rails/actionpack/lib/
action_controller/dispatcher.rb:108:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/railties/lib/rails/rack/
static.rb:31:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
urlmap.rb:47:in `block in call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
urlmap.rb:41:in `each'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
urlmap.rb:41:in `call'
/Users/igagnidz/gitsources/onit/vendor/rails/railties/lib/rails/rack/
log_tailer.rb:17:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
content_length.rb:13:in `call'
/Users/igagnidz/.rvm/gems/ruby-1.9.1-p243/gems/rack-1.1.0/lib/rack/
handler/webrick.rb:48:in `service'
/Users/igagnidz/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
httpserver.rb:111:in `service'
/Users/igagnidz/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
httpserver.rb:70:in `run'
/Users/igagnidz/.rvm/rubies/ruby-1.9.1-p243/lib/ruby/1.9.1/webrick/
server.rb:183:in `block in start_thread'


On Mar 22, 2:27 pm, John Mettraux <[email protected]> wrote:
> On Tue, Mar 22, 2011 at 12:17:07PM -0700, Iuri G. wrote:
>
> > 400 bad request
> > "\xE2" from ASCII-8BIT to UTF-8...
>
> > We switched to ruote-sequel storage and the problem went away.
> > It is not an issue for us, because we are switching to ruote-sequel,
> > but we thought we would pass the information along.
>
> > P.S. We are using rails 2.3.8, ruby 1.9.1-p243, ruote-2.2.0.
>
> Hello Iuri,
>
> thanks for the report, could you please give me the full backtrace ?
>
> Best regards,
>
> --
> John Mettraux -http://jmettraux.wordpress.com

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to