Skip to content

Instantly share code, notes, and snippets.

View pseudorandumb's full-sized avatar

Kyle Patterson pseudorandumb

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pseudorandumb on github.
  • I am pseudorandumb (https://keybase.io/pseudorandumb) on keybase.
  • I have a public key ASCtm2RM-Nfy4oRoMSIMdkJmdqpDTZXBMIyhIYd9zk7JVgo

To claim this, I am signing this object:

Map = riakc_map:update({CountKey, counter},
fun(Counter) -> riakc_counter:increment(CountInc, Counter) end,
riakc_map:new()),
riakc_pb_socket:update_type(Pid,{<<"map">>,Bucket},Key,riakc_map:to_op(Map)).
% Error in Riak logs:
% Supervisor: {local,riak_api_pb_sup}
% Context: child_terminated
% Reason: {error,badarg,[{protobuffs,decode_value,[<<2,8,2>>,2,mapfield_mapfieldtype],[{file,"src/protobuffs.erl"},{line,356}]},{protobuffs,decode,2,[{file,"src/protobuffs.erl"},{line,217}]},{riak_dt_pb,decode,3,[{file,"src/riak_dt_pb.erl"},{line,157}]},{riak_dt_pb,decode,2,[{file,"src/riak_dt_pb.erl"},{line,137}]},{riak_dt_pb,decode,3,[{file,"src/riak_dt_pb.erl"},{line,149}]},{riak_dt_pb,decode,2,[{file,"src/riak_dt_pb.erl"},{line,137}]},{riak_dt_pb,decode,3,[{file,"src/riak_dt_pb.erl"},{line,149}]},{riak_dt_pb,decode,2,[{file,"src/riak_dt_pb.erl"},{line,137}]}]}
% Offender: [{pid,<0.16356.6>},{name,undefined},{mfargs,{riak_api_pb_server,start_l
curl -v -H 'content-type: text/plain' -X PUT 'http://localhost:8098/buckets/users/keys/testkey' -d '{"blargh": "test"}'
Something like the above returns this:
<html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{error,
{error,badarg,
[{erlang,iolist_to_binary,
[{hook_crashed,{riak_search_kv_hook,precommit,error,badarg}}],
[]},
{wrq,append_to_response_body,2,[{file,"src/wrq.erl"},{line,215}]},
{riak_kv_wm_object,handle_common_error,3,