db['people'] = {}
returns:
[info] [<0.47.0>] HTTP Request: PUT /strigo-data/people HTTP/1.1
[info] [<0.47.0>] HTTP Error (code 500): {obj,[{error,"EXIT"},
{reason,"{function_clause,[{cjson,tokenize,\n
[[],{decoder,utf8,null,1,1,any}]},\n
{cjson,decode1,2},\n {cjson,json_decode,2},\n
{mod_couch,handle_doc_put,2},\n
{mod_couch,do,1},\n {httpd_response,traverse_modules,2},\n
{httpd_response,generate_and_send_response,1},\n
{httpd_request_handler,handle_response,1}]}"}]}
[info] [<0.47.0>] HTTP Response Code:500
---- solution ----
<jmoiron> line 628 in client.py
<jmoiron> it does "if content:", which is gonna be false on your empty dict
<mahound> yep
<jmoiron> it should be "if not content is None:"
<jmoiron> so yes it does end up doing an empty put
<jmoiron> which is bad
<jmoiron> you can post the bug and include that :)
Original issue reported on code.google.com by ilzogo...@gmail.com on 15 Mar 2008 at 9:32
Original issue reported on code.google.com by
ilzogo...@gmail.com
on 15 Mar 2008 at 9:32