Hello all,
I've been banging my head against the PBC API all weekend and I can't seem
to figure out why I'm getting an error. I'm able to call RpbListBuckets
(empty message) without issue, but when I try to call RpbListKeys I get an
error (pasted below in full) -- Error decodeing type with PBC API.

I've pulled out the encoded message (trying to list the rekon bucket as a
test), it is:
00-00-00-0A-11-00-10-6E-6F-6B-65-72-05-0A

I've confirmed that the length (0x0A = 10) and message type (0x11 =
RpbListKeysReq) are correct. I'm unsure how I'd manually decode the message
itself, but it matches what protobuf is giving me, so I'm assuming it to be
correct as well.

I'd appreciate any pointers as to what I'm doing wrong, I'm completely
stumped.

The full error I'm getting:

Error processing incoming message: throw:{error,"Error decodeing
type"}:[{protobuffs,

read_field_num_and_wire_type,
                                                                          1,

[{file,

"src/protobuffs.erl"},

 {line,

203}]},

 {protobuffs,

next_field_num,
                                                                          1,

[{file,

"src/protobuffs.erl"},

 {line,

242}]},

 {riak_kv_pb,

decode,
                                                                          3,

[{file,

"src/riak_kv_pb.erl"},

 {line,

105}]},

 {riak_kv_pb,

decode,
                                                                          2,

[{file,

"src/riak_kv_pb.erl"},

 {line,

100}]},

 {riak_kv_pb_bucket,

decode,
                                                                          2,

[{file,

"src/riak_kv_pb_bucket.erl"},

 {line,

67}]},

 {riak_api_pb_server,

handle_message,
                                                                          3,

[{file,

"src/riak_api_pb_server.erl"},

 {line,

196}]},

 {riak_api_pb_server,

decode_buffer,
                                                                          1,

[{file,

"src/riak_api_pb_server.erl"},

 {line,

172}]},

 {gen_server,

handle_msg,
                                                                          5,

[{file,

"gen_server.erl"},

 {line,

607}]}]
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to