MySQL Forums
Forum List  »  Connector/Node.js

Connect to mysqlx failed
Posted by: Rizal Adoy
Date: March 02, 2020 11:13PM

Hello,

I've done this on local environment (macos) nodejs v.10.x mysql 8.0.17 everything runs without problem. But, i've got error in server environment (ubuntu 16.04 LTS) the error message:

/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Protobuf/Adapters/Datatypes.js:387
return this.extractObject(proto.getObject());
^

TypeError: proto.getObject is not a function
at Object.exports.extractAny (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Protobuf/Adapters/Datatypes.js:387:41)
at Object.exports.decodeCapability (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Protobuf/Adapters/Connection.js:68:43)
at proto.getCapabilitiesList.reduce (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Protobuf/Adapters/Connection.js:57:80)
at Array.reduce (<anonymous>)
at Object.exports.decodeCapabilities (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Protobuf/Adapters/Connection.js:57:10)
at CapabilitiesGetHandler.(anonymous function) (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/ResponseHandlers/CapabilitiesGetHandler.js:49:30)
at Array.entry (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/ResponseHandlers/BaseHandler.js:90:29)
at WorkQueue.process (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/WorkQueue.js:75:19)
at Client.handleServerMessage (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:240:21)
at Client.handleNetworkFragment (/var/nodejs/myapp/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:284:14)

Please help.

Thank you.

Best regard

Options: ReplyQuote


Subject
Written By
Posted
Connect to mysqlx failed
March 02, 2020 11:13PM
March 03, 2020 03:42AM
March 03, 2020 06:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.