I am trying to connect my API to snowflake, using the node.js driver found in the snowflake documentation https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html
const connection = snowflake.createConnection({
account: process.env.SNOWFLAKE_ACCOUNT,
username: process.env.SNOWFLAKE_USERNAME,
password: process.env.SNOWFLAKE_PASSWORD,
})
connection.connect((err, conn) => {
if (err) {
console.error('Unable to connect: ' + err.message);
}
else {
console.log('Successfully connected to Snowflake.');
const connection_ID = conn.getId();
return connection_ID
}
});
However, I am getting this error:
Unable to connect: Network error. Could not reach Snowflake.
Not sure what I am missing. Would be great if someone could share some insights here? Thanks in advance!