Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Riak PBC error
>> RIAK_HTTP_CLIENT.bucket("test_bucket").get_index("c_bin","test")
=> ["my_token"]
>> RIAK_PBC_CLIENT.bucket("test_bucket").get_index("c_bin","test")
NoMethodError: undefined method `length' for #<Riak::Bucket {test_bucket}>
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake/buffer/encode.rb:108:in `append_string'
from org/jruby/RubyBasicObject.java:1665:in `__send__'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake/buffer/encode.rb:13:in `append'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake.rb:102:in `encode!'
from org/jruby/RubyArray.java:1613:in `each'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake.rb:90:in `encode!'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake.rb:79:in `encode'
from org/jruby/RubyArray.java:1613:in `each'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/beefcake-0.3.7/lib/beefcake.rb:72:in `encode'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client/beefcake_protobuffs_backend.rb:157:in `write_protobuff'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client/beefcake_protobuffs_backend.rb:142:in `get_index'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:273:in `get_index'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:435:in `recover_from'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/innertube-1.0.2/lib/innertube.rb:127:in `take'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:433:in `recover_from'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:379:in `protobuffs'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:133:in `backend'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/client.rb:272:in `get_index'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/riak-client-1.1.1/lib/riak/bucket.rb:150:in `get_index'
from (irb):3:in `evaluate'
from org/jruby/RubyKernel.java:1066:in `eval'
from org/jruby/RubyKernel.java:1392:in `loop'
from org/jruby/RubyKernel.java:1174:in `catch'
from org/jruby/RubyKernel.java:1174:in `catch'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start'
from /Users/graphex/.rvm/gems/jruby-1.7.2@gemset/gems/railties-3.2.13/lib/rails/commands.rb:41:in `(root)'
from org/jruby/RubyKernel.java:1027:in `require'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.