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
Callback in promise never called #23
Comments
|
Hi @mebibou, Can you share some code part / your dependencies list ? const mariadb = require('mariadb');
mariadb.createConnection({user:'root'}).then(connection => {
connection.query('SELECT * FROM information_schema.statistics')
.then(results => {
console.log(results);
connection.end();
});
}); |
|
@rusher this simple code throws this error: I ran the code in an empty project with only the |
|
Then it seems, there is a protocol issue. const mariadb = require('mariadb');
mariadb.createConnection({user: 'root', debug: true}).then(connection => {
console.log(connection.serverVersion());
connection.query('SELECT * FROM information_schema.statistics')
.then(results => {
console.log(results);
connection.end();
});
}); |
|
Yes I am using a MySQL server on Azure, version |
|
problem identified: <== conn:64736 NativePasswordAuth.response (0,1)
01 00 00 01 10 .....That means a race condition there. (First query packet is handle by authentication command and not query command). |
|
ok... what does that mean? 🙄 |
|
Error reproduced, it concern authentication switch. I'm just wondering, this MySQL has an issue because ask for standard mysql_native_password authentication, connector answer for it, with encrypted authentication, at this point, the connection must be established. |
For some reason the
thenfunctions from the queries are never called for me. For example:Will never display the results. I put a
console.login the source code of this library atcommand.js#successEnd(before theprocess.nextTick(this.resolve, val);) and thevaldoes contain the data, but the promise seems to never resolve for some reason.Testing on
2.0.0-alphaThe text was updated successfully, but these errors were encountered: