MySQL Forums
Forum List  »  Connector/Node.js

Re: Connect to mysqlx failed
Posted by: Rui Quelhas
Date: March 03, 2020 03:42AM

Already addressed via Slack ;) Here's the gist though.

This is a known forward compatibility issue, which is only reproducible with client versions lower than or equal to 8.0.17 and server versions higher than or equal to 8.0.18. The X Plugin introduces an object-based capability for the first time on MySQL 8.0.18 which can't be parsed by the client because there is a hidden bug in the protobuf decoding routine.

The practical solution is to upgrade the client to a version higher than or equal to 8.0.18. If not possible, the client source can be locally patched simply with the following:

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

Thanks

Options: ReplyQuote


Subject
Written By
Posted
March 02, 2020 11:13PM
Re: Connect to mysqlx failed
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.