[CONJS-193] Wrong error returned "Cannot read properties of undefined… … (reading 'charset')" when error during handshake Created: 2022-04-20 Updated: 2022-04-26 Resolved: 2022-04-26 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | other |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.0.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | markus makela | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MariaDB 10.2.7 |
||
| Description |
|
The following code throws an exception with MariaDB 10.2 whereas with 10.6 it just works.
|
| Comments |
| Comment by Diego Dupin [ 2022-04-25 ] |
|
It doesn't seems to be related with server version 10.2 at all. This part will be corrected with https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/5121d6cf1b32d25167ef9f385a0c78cf6554a4d3 |
| Comment by markus makela [ 2022-04-26 ] |
|
Testing it again with the 10.2.7 image does show that it now works when connecting directly as well as through MaxScale. The server was most definitely up when I tested it as it returned a resultset before throwing that exception. |
| Comment by Diego Dupin [ 2022-04-26 ] |
|
thanks markus, i will then close the task changing to label to wrong error returned "Cannot read properties of undefined… … (reading 'charset')" when error during handshake |