error -link_match_fun/2-fun-1-

Bryan Fink bryan at
Mon Dec 7 09:22:15 EST 2009

On Sat, Dec 5, 2009 at 4:16 AM, francisco treacy
<francisco.treacy at> wrote:
> A user of Riakka has reported an error in the test suite, but I cannot
> spot the problem.  The test suite works perfectly fine in my computer
> and other known users of Riakka.
> {error,function_clause,
>       [{jiak_object,'-link_match_fun/2-fun-1-',
>                     [{struct,[{<<"bucket">>,
> <<"riakka-1982bffc-e53b-4cb4-b9e0-289550bd8a71">>},
>                               {<<"key">>,
>                                <<"2ec65c25-8ef7-47ab-8cf0-c7c94990cc48">>},
>                               {<<"tag">>,<<"_">>}]},
>                      <<"riakka-1982bffc-e53b-4cb4-b9e0-289550bd8a71">>]},
>        {lists,'-filter/2-lc$^0/1-0-',2},
>        {jaywalker_resource,'-execute_query/3-lc$^0/1-0-',3},
>        {jaywalker_resource,execute_query,3},
>        {jaywalker_resource,to_json,2},
>        {webmachine_resource,resource_call,3},
>        {webmachine_resource,do,3},
>        {webmachine_decision_core,resource_call,1}]}
> Could this be a version-specific Riak problem?  E.g. some characters
> not allowed in keys?
> Thanks,
> Francisco

Hi, Francisco.  I think the cause of this error is an invalid "links"
field in a Jiak object.  Where the links field should look something


I think the object that is causing this error has a links field that looks like:


I'm unfamiliar with the Riakka test suite, so I don't know how such a
field would have shown up there, but jiak_resource doesn't do a lot of
validity checking on the links field currently.  If this is what's
causing the error you saw, then it sounds like a good case for more
checking to me.


More information about the riak-users mailing list