GenieACS simulator problem

After installing genieacs-sim:

git clone https://github.com/zaidka/genieacs-sim.git
cd genieacs-sim
npm install
./genieacs-sim

i have an error:

[root@centos_ACS genieacs-sim]# ./genieacs-sim
Simulator 000000 started
Simulator 000000 listening for connection requests on http://127.0.0.1:33665/
/opt/genieacs-sim/xml-utils.js:6
for (const [k, v] of Object.entries(attrs)) attrsStr += ${k}="${v}";
^

TypeError: Object.entries is not a function
at Object.node (/opt/genieacs-sim/xml-utils.js:6:31)
at Object.inform (/opt/genieacs-sim/methods.js:37:29)
at startSession (/opt/genieacs-sim/simulator.js:109:11)
at listenForConnectionRequests (/opt/genieacs-sim/simulator.js:292:5)
at Server.httpServer.listen.err (/opt/genieacs-sim/simulator.js:256:14)
at Server.g (events.js:292:16)
at emitNone (events.js:91:20)
at Server.emit (events.js:185:7)
at emitListeningNT (net.js:1297:10)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
Simulator 000000 died (1). Restarting in 10 seconds…

can someone help with that ?

problem solved - incompatible nodeJS version

Hello @Bartek, which node version are you running? Because I’m with v6.9.2 and getting the exact same error as you!

Thank you already

lastest NodeJS version is about 16

1 Like