Config syntax error on startup
See original GitHub issueJust updated to the latest release, The docker wont launch instead will exit, below is the log output,
epicgames-freegames-node@4.0.0 entrypoint-config /usr/app node dist/src/entrypoint-config.js
/usr/app/node_modules/json5/lib/parse.js:1083 const err = new SyntaxError(message)
SyntaxError: JSON5: invalid character ‘"’ at 11:5
at syntaxError (/usr/app/node_modules/json5/lib/parse.js:1083:17)
at invalidChar (/usr/app/node_modules/json5/lib/parse.js:1028:12)
at Object.afterPropertyValue (/usr/app/node_modules/json5/lib/parse.js:654:15)
at Object.default (/usr/app/node_modules/json5/lib/parse.js:146:37)
at lex (/usr/app/node_modules/json5/lib/parse.js:78:42)
at Object.parse (/usr/app/node_modules/json5/lib/parse.js:25:17)
at Object.<anonymous> (/usr/app/src/common/config/setup.ts:56:30)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! epicgames-freegames-node@4.0.0 entrypoint-config: node dist/src/entrypoint-config.js
npm ERR! Exit status 1
npm ERR! Failed at the epicgames-freegames-node@4.0.0 entrypoint-config script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-10-03T02_27_45_193Z-debug.log cat: can’t open ‘/tmp/config.json’: No such file or directory cat: can’t open ‘/tmp/config.json’: No such file or directory cat: can’t open ‘/tmp/config.json’: No such file or directory cat: can’t open ‘/tmp/config.json’: No such file or directory Setting timezone: Run on startup: Run once: Exiting…
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
You have an syntax error in your config.json(5) at line 11, column 5.
Oh how frustrating! I have solved it, I also encountered another error of a ‘not a valid web address’, solved this by putting http in front of the IP address for the web url and now everything is working nicely 😃
Hopefully I wont break anything else by missing a comma.