Python Riak documentation error?

Shuhao Wu admin at thekks.net
Thu Dec 15 18:34:26 EST 2011


I'm using the same line as in the tutorial, the latest python-riak
client from the repository.

    query.map("function(v) { var data = JSON.parse(v.values[0].data);
if(data.is_active == true) { return [[v.key, data]]; } return []; }")

Running this query will raise an Exception.

    Exception: Error running MapReduce operation. Status: 500 :
{"lineno":466,"message":"SyntaxError: syntax error","source":"()"}

Another thing is that this shouldn't raise Exception as that would
encourage Pokemon exception handling ("you gotta catch 'em all")...
which is not necessarily a good thing..

Shuhao



More information about the riak-users mailing list