Error in starting jsreport server
-
node server.js
2020-04-07T03:59:54.035Z - info: Initializing jsreport@2.3.0 in development mode using configuration file: jsreport.config.json
2020-04-07T03:59:54.038Z - info: Searching for available extensions in /opt/mount1/cartos/js_report/
2020-04-07T03:59:54.049Z - error: Error occured during reporter init SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.get (/opt/mount1/cartos/js_report/node_modules/jsreport-core/lib/extensions/locationCache.js:26:24)
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.get (/opt/mount1/cartos/js_report/node_modules/jsreport-core/lib/extensions/locationCache.js:26:24)
-
Can u please help in resolving this error?
-
Please delete file
/tmp/jsreport/core/location.json
and starting jsreport instance again.
This should bring you back online.Note this problem/bug is very rare and was fixed in the more recent jsreport versions.
-
Not able to find location.json file in js-report.
-
It is in the os temp by default.
-
After removing location.json file, it starts working fine.
Thanks!!