Necrobrowser config: SyntaxError: Unexpected token
saakkaas opened this issue · comments
When it comes triggering necrobrowser ... :
SyntaxError: Unexpected token p in JSON at position 0
at JSON.parse (<anonymous>)
at createStrictSyntaxError (/home/user/muraena/necrobrowser/node_modules/body-parser/lib/types/json.js:169:10)
at parse (/home/user/muraena/necrobrowser/node_modules/body-parser/lib/types/json.js:86:15)
at /home/user/muraena/necrobrowser/node_modules/body-parser/lib/read.js:128:18
at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
at invokeCallback (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:238:16)
at done (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:227:7)
at IncomingMessage.onEnd (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:287:7)
at IncomingMessage.emit (node:events:517:28)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
But there is no problem when I send request with curl.
That syntaxerror seems related to something wrong in the JSON file. Could you also post here the JSON configuration, please.
Hello dear, which json ?