[SR-Users] invalid char in json text

Kelvin Chua kelchy at gmail.com
Sat Jun 27 16:04:45 CEST 2015


Playing around with ndb_mongodb

getting this error:

ERROR: ndb_mongodb [mongodb_client.c:262]: mongodbc_exec_cmd(): Failed to
run command: lexical error: invalid char in json text

query is very simple:
db.cdrs.insert({time:new
Date(),src_user:"kelvin",term_ani:"14112",src_domain:"domain.com
",src_ip:"0",dst_ouser:"18188",dst_user:"18112",dst_domain:"domain.com"})

which is inside a pv
mongodb_cmd("mgs1", "datab", "cdrs", "$var(MNG_MISSED)", "mgr1");

tried this:
insert({time:new Date(),src_user:"kelvin",term_ani:"14112",src_domain:"
domain.com",src_ip:"0",dst_ouser:"18188",dst_user:"18112",dst_domain:"
domain.com"})

and other combinations, same error

any ideas? i guess we need some more examples on the documentation


Kelvin Chua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150627/f66a9901/attachment.html>


More information about the sr-users mailing list