"getaddrinfo ENOTFOUND https://1f121fc7.ngrok.io https://1f121fc7.ngrok.io:3306"

i am connecting my localhost to Auth0 server with ngrok.exe with 443 port.
as i am using own db with Auth0 try click and this message came "“getaddrinfo ENOTFOUND https://1f121fc7.ngrok.io https://1f121fc7.ngrok.io:3306"”.
function login(email, password, callback) {
const mysql = require(‘mysql’);
const bcrypt = require(‘bcrypt’);

const connection = mysql.createConnection({
host:‘https://1f121fc7.ngrok.io’,
user: ‘root’,
password: ‘’,
database: ‘dbname’
});

connection.connect();

const query = ‘SELECT id, email FROM users WHERE email = ?’;

connection.query(query, [ email ], function(err, results) {
if (err) return callback(err);
if (results.length === 0) return callback(new WrongUsernameOrPasswordError(email));
const user = results[0];

bcrypt.compare(password, user.password, function(err, isValid) {
  if (err || !isValid) return callback(err || new WrongUsernameOrPasswordError(email));

  callback(null, {
    user_id: user.id.toString(),
     email: user.email
  });
});

});
}

what is wrong in it. plz answer it ASAP. Thanks. I have development env.

Hello!

getaddrinfo ENOTFOUND generally means the client was not able to connect to given address. I would recommend trying to specify the host without https:

example:

{
    host : 'localhost',
    port : 455,
    path : '/quote/random'
}

Thanks @karen1,

I did that, now I am getting this error.
“connect ETIMEDOUT” .

I am a beginner developer. I am connecting this with ngrok, with my local DB.
I am using Auth0 provided custom login with custom DB.
and i am checking on Auth0 CLICKING on TRY button.
I have also check with whitelist IPs but no luck.
This is my code.
const connection = mysql.createConnection({
host: ‘d2c6ec27.ngrok.io’,
user: ‘root’,
password: ‘’,
database: ‘hstarapp’
});
plz guide me. Thanks in advance…