英文:
Datastax Astra : error fetching metadata information using secure bundle
问题
我的目标是使用安全连接包(Secure Connect Bundle)连接到Astra上的数据库。但是,我遇到了这个错误(在蓝色下划线下显示):
首先,我进入了我的服务器(Celestia),然后点击连接选项卡下载了连接包。
之后,我按照以下说明操作:
由于我使用的是Windows,所以我使用了"type nul"来创建文件,而不是使用touch connect-database.js。
然后,我根据说明修改了connect-database.js文件。但是,正如上面提到的,当我尝试运行以下代码时:node connect-database.js,我遇到了NoHostAvailableError错误。
英文:
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.
答案1
得分: 1
我能够按照指示连接而无问题,唯一的区别是我使用的是OSX而不是Windows。
请仔细检查您是否将数据库设置为“限制公共访问”,您需要将您的IP地址添加到允许列表中才能建立连接。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论