recently nodejs api has been throwing extremely strange error:
syntaxerror: unexpected token _ @ parse (/var/www/html/node/node_modules/body-parser/lib/types/json.js:83:15) @ /var/www/html/node/node_modules/body-parser/lib/read.js:116:18 @ invokecallback (/var/www/html/node/node_modules/raw-body/index.js:262:16) @ done (/var/www/html/node/node_modules/raw-body/index.js:251:7) @ incomingmessage.onend (/var/www/html/node/node_modules/raw-body/index.js:308:7) @ incomingmessage.eventemitter.emit (events.js:92:17) @ _stream_readable.js:920:16 @ process._tickcallback (node.js:415:13)
as doesn't point file have outside of node_modules, i'm confused causing error. have values such creation_timestamp , _id have never yet had trouble handling those.
if has solution or way more info out of appreciated it, i'm @ wits end this.
edit: stringified json i'm posing:
{"meeting_id":"5755d81869996f6e4cea47ea","type":"delete_entry"}
turns out due kendoui scheduler , way transport endpoint works. need stringify explicitly before sending requests through scheduler constructor. in scheduler.datasource.transport added:
parametermap: function (data, op) { return json.stringify(data); }
now works.