Cannot read properties of undefined (reading 'release')

24 views
Skip to first unread message

M. Reyhan Firdaus

unread,
Oct 18, 2023, 12:23:28 AM10/18/23
to node-mysql
[2023-10-18T04:17:27.634Z] INFO  myApp2/BROKER: Moleculer v0.14.31 is starting...
[2023-10-18T04:17:27.635Z] INFO  myApp2/BROKER: Namespace: Database
[2023-10-18T04:17:27.636Z] INFO  myApp2/BROKER: Node ID: myApp2
[2023-10-18T04:17:27.637Z] INFO  myApp2/REGISTRY: Strategy: RoundRobinStrategy
[2023-10-18T04:17:27.637Z] INFO  myApp2/REGISTRY: Discoverer: LocalDiscoverer
[2023-10-18T04:17:27.646Z] INFO  myApp2/BROKER: Serializer: JSONSerializer
[2023-10-18T04:17:27.656Z] INFO  myApp2/BROKER: Validator: FastestValidator
[2023-10-18T04:17:27.657Z] INFO  myApp2/BROKER: Registered 13 middleware(s).
[2023-10-18T04:17:28.040Z] INFO  myApp2/REGISTRY: '$node' service is registered.
[2023-10-18T04:17:28.041Z] INFO  myApp2/REGISTRY: 'spicloud' service is registered.
[2023-10-18T04:17:28.041Z] INFO  myApp2/REGISTRY: 'spicloud2' service is registered.
[2023-10-18T04:17:28.042Z] INFO  myApp2/$NODE: Service '$node' started.
[2023-10-18T04:17:28.042Z] INFO  myApp2/SPICLOUD: Service 'spicloud' started.
[2023-10-18T04:17:28.042Z] INFO  myApp2/SPICLOUD2: Service 'spicloud2' started.
[2023-10-18T04:17:28.042Z] INFO  myApp2/BROKER: ✔ ServiceBroker with 3 service(s) started successfully in 6ms.
[2023-10-18T04:17:28.047Z] INFO  myApp2/BROKER: API SERVER START AT PORT : 3387
C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

TypeError: Cannot read properties of undefined (reading 'release')
    at C:\Users\kokos\Desktop\spicloud\spicloud 3\run\first.service.js:52:9
    at Handshake.onConnect (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\Pool.js:58:9)
    at Handshake.<anonymous> (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\Connection.js:528:10)
    at Handshake._callback (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\Connection.js:490:16)
    at Sequence.end (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24)
    at Handshake.ErrorPacket (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\sequences\Handshake.js:125:8)
    at Protocol._parsePacket (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\Protocol.js:291:23)
    at Parser._parsePacket (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\Parser.js:433:10)
    at Parser.write (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\Parser.js:43:10)
    at Protocol.write (C:\Users\kokos\Desktop\spicloud\node_modules\mysql\lib\protocol\Protocol.js:38:16)

Node.js v18.18.0

what's promblem. On another laptop this can run, and on my laptop this error appears

András Székely

unread,
Oct 19, 2023, 4:11:09 PM10/19/23
to node-...@googlegroups.com
The error should come from here : 

TypeError: Cannot read properties of undefined (reading 'release')
    at C:\Users\kokos\Desktop\spicloud\spicloud 3\run\first.service.js:52:9


Investigate this. 
Also check node version.... :-)



--
You received this message because you are subscribed to the Google Groups "node-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mysql+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/node-mysql/929e9926-1e56-4282-a8d1-278b2749298cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages