You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2018. It is now read-only.
Node server doesn't like being restarted sometimes, due to corruptions in the cache. Removing *.json files from cache folder fixes issues.
Also, on first install, it does not check if the cache folder exists, and will crash until created manually.
undefined:53
25271241420,
^
SyntaxError: Unexpected number
at Object.parse (native)
at Object.me.readFileSync (/srv/OverRustle-API/node_modules/jsonfile/lib/jsonfile.js:31:17)
at Object. (/srv/OverRustle-API/index.js:84:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
The text was updated successfully, but these errors were encountered:
Should we just clear the cache on restart? As long as the API is not being restarted every minute it should not be a problem no?
repolling endpoints is cheap, and with the server having its own copy of the redis DB, connection loss is no longer a problem.
fs.js:439
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory './cache/metadata.json'
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Node server doesn't like being restarted sometimes, due to corruptions in the cache. Removing *.json files from cache folder fixes issues.
Also, on first install, it does not check if the cache folder exists, and will crash until created manually.
undefined:53
25271241420,
^
SyntaxError: Unexpected number
at Object.parse (native)
at Object.me.readFileSync (/srv/OverRustle-API/node_modules/jsonfile/lib/jsonfile.js:31:17)
at Object. (/srv/OverRustle-API/index.js:84:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
The text was updated successfully, but these errors were encountered: