My goal is to use a Secure Connect Bundle to connect to my database on Astra. However, I'm getting This error (underlined in blue):
First I went to my server (Celestia) and went to the connect tab to download the bundle.

Afterwards, I followed the instruction:
Since I am on windows i used "type nul" to create the file instead of touch connect-database.js.
I modified the connect-database.js file as per the instructions.
However, as mentioned above when I try to run the code :node connect-database.js
I get a NoHostAvailableError.

Following the instructions - I am able to connect without issue - the only difference being that I am using OSX and not windows.
Double check that you have not set the database to 'Restrict Public Access', you would need to have your IP in the allow list to make a connection.