New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: <ref *1> Handshake #132
Comments
|
I can confirm this does work... So it appears to be a problem with the lib |
|
This means that connection charset received by serveur is not supported. Could you try connecting the same way than MySQL (using json param) ? It would be great if you can add the debug log (adding |
|
@rusher I can try this but I am not sure what you want me to add. Here is the output with debug... Seems like even if I can get it to work the default is not working correctly |
|
Hello guys, I've the same problem @jrgleason : did you fixed it ? The weird thing is that I have the same configuration (maria DB version 10.4.14 & node module mariadb@2.5.0 on fedora 32) on my laptop and my desktop, but it only fails on my laptop. Here is my result with this.debug set to true : @rusher : any idea about how I can debug this ? |
|
I now have an idea of what can cause this, but fail to reproduce it. or if you have the possibility, could you confirm that changing in node_modules/mariadb/lib/connection.js line 949: |
|
Thanks for the so quick answer ! I'm using node v15.0.1 Yes, it works perfectly with this change ! 👍 What do you suggest ? To downgrade node to an other version ? |
|
Thanks, issue is reproduced with node v15 version, this is due to stream implementation change for QUIC implementation. |
|
A corrective version 2.5.1 is now released on npm |
|
Thank you guys for the fix ❤️ |
This comment was marked as outdated.
This comment was marked as outdated.
similar issue to mariadb-corporation/mariadb-connector-nodejs#132 albeit this was much longer ago
* update mariadb to fix weird connection error similar issue to mariadb-corporation/mariadb-connector-nodejs#132 albeit this was much longer ago * make this compile * fix some tests * update tests and migration list * fix some queries * lint * upgrade ts-node-dev and friends to fix startup issue
I have a simple setup.
I have a host machine (OSX) running Virtual Box. The Virtual Box is running a Debian guest, which is running MariaDB. I am using a bridged network.
When I use an app to check the connection it works...
But when I try to use the node library...
I get...
The text was updated successfully, but these errors were encountered: