find user by_name error
Created by: elishowk
Hi, the new find method on users is great, but seems brocken for some users that exists otherwise :
$ rel/ucengine/bin/ucengine-admin localhost user get 10114245016063748978778090009378
Id: 10114245016063748978778090009378
Name: elishowk
Authentification method: password
Metadata:
Roles:
default in all locations
10114245016063748978778090009378 in all locations
Thanks
-
from ucengine.log after the request :
=ERROR REPORT==== 3-Aug-2011::16:06:49 ===
ERROR erlang code crashed: File: appmod:0 Reason: {function_clause,[{mochijson,'-json_encode_proplist/2-fun-0-', [123,"{",{encoder,unicode,null}]}, {lists,foldl,3}, {mochijson,json_encode_proplist,2}, {mochijson,'-json_encode_proplist/2-fun-0-',3}, {lists,foldl,3}, {mochijson,json_encode_proplist,2}, {mochijson,'-json_encode_proplist/2-fun-0-',3}, {lists,foldl,3}]} Req: {http_request,'GET', {abs_path,"/api/0.6/find/user/?by_name=elishowk&uid=17091638209334675147595434873967&sid=36535853897286149364629079340311"}, {1,0}} Stack: [{mochijson,'-json_encode_proplist/2-fun-0-', [123,"{",{encoder,unicode,null}]}, {lists,foldl,3}, {mochijson,json_encode_proplist,2}, {mochijson,'-json_encode_proplist/2-fun-0-',3}, {lists,foldl,3}, {mochijson,json_encode_proplist,2}, {mochijson,'-json_encode_proplist/2-fun-0-',3}, {lists,foldl,3}]