Cannot start proxy.js due to javascript syntax error
optout21 opened this issue · comments
After clean install, following error is returned when attempting to start:
node proxy.js
/home/ubuntu/NanoRPCProxy/src/server/proxy.js:1116
catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
I believe the problem is this line:
try {
var connection = request.accept()
}
>> catch {
logThis('Bad protocol from connecting client', log_levels.info)
return
}
https://github.com/Joohansson/NanoRPCProxy/blob/master/src/server/proxy.js#L1116
Commit: d3d2c1b