Riak ruby client runtime error

Sean Cribbs sean at basho.com
Fri Jun 22 11:00:46 EDT 2012


Use #raw_data= instead of #data=. The #data= accessor assumes you want to
turn Ruby objects into serialized types.

On Fri, Jun 22, 2012 at 10:43 AM, Anand Hegde <anandghegde at gmail.com> wrote:

> ok, now the error is this
>
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:26:in
> `block in serializer_for': No serializer has been registered for content
> type "text/html" (NotImplementedError)
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:25:in
> `fetch'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:25:in
> `serializer_for'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/serializers.rb:15:in
> `serialize'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/robject.rb:242:in
> `serialize'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/robject.rb:163:in
> `raw_data'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client/http_backend.rb:96:in
> `store_object'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:507:in
> `block in store_object'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:433:in
> `block in recover_from'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client/pool.rb:126:in
> `take'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:431:in
> `recover_from'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:284:in
> `http'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:129:in
> `backend'
>  from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/client.rb:506:in
> `store_object'
> from
> /Users/anandhegde/.rvm/gems/ruby-1.9.3-p0/gems/riak-client-1.0.3/lib/riak/robject.rb:186:in
> `store'
>  from riak_client.rb:8:in `<main>'
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Sean Cribbs <sean at basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120622/7d2b5afe/attachment.html>


More information about the riak-users mailing list