Error decodeing type with PBC API

japhar81 japhar81 at gmail.com
Mon Jun 23 10:05:53 EDT 2014


Riak is at 1.4.8, running on ubuntu 12.04 LTS. Nothing special in the
install, I just followed the 5-min install guide and then installed rekon
over top. The client is my own code (.NET 4.5 in case that matters) using
protobuf-net to do the object marshaling.


On Mon, Jun 23, 2014 at 2:28 AM, Russell Brown <russell.brown at me.com> wrote:

> Hi,
> For this type of issue client and server versions are very useful, please.
>
> Russell
>
> On 23 Jun 2014, at 03:55, japhar81 <japhar81 at gmail.com> wrote:
>
> > 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 at lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140623/23948a7d/attachment.html>


More information about the riak-users mailing list