Datastax Astra:使用安全捆绑包获取元数据信息时出错。

huangapple go评论52阅读模式
英文:

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):

Datastax Astra:使用安全捆绑包获取元数据信息时出错。


First I went to my server (Celestia) and went to the connect tab to download the bundle.
Datastax Astra:使用安全捆绑包获取元数据信息时出错。


Afterwards, I followed the instruction:Datastax Astra:使用安全捆绑包获取元数据信息时出错。

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.
Datastax Astra:使用安全捆绑包获取元数据信息时出错。
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.

huangapple
  • 本文由 发表于 2023年7月7日 02:16:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76631544.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定