排名和检索,未能连接到 gateway.watsonplatform.net
Rank & Retrieve, Failed to connect to gateway.watsonplatform.net
我正在尝试使用 java class 创建一个 Create Solr 集群,如下面的步骤 link as shown here
但我收到以下错误,这可能是防火墙问题吗?
使用JAVA
com.ibm.watson.developer_cloud.service.WatsonService 执行 SEVERE: IOException java.net.ConnectException: 无法连接到 gateway.watsonplatform.net/:443 在 com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:139) 在 com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:108) 在 com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184) 在 com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126) 在 com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java: 95) 在 com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281) 在 com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224) 在 com.squareup.okhttp.Call.getResponse(Call.java:286) 在 com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243) 在 com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205) 在 com.squareup.okhttp.Call.execute(Call.java:80 ) 在 com.ibm.watson.developer_cloud.service.WatsonService.execute(WatsonService.java:122) 在 com.ibm.watson.developer_cloud.service.WatsonService.executeRequest(WatsonService.java:183) 在 com.ibm.watson.developer_cloud.retrieve_and_rank.v1.RetrieveAndRank.createSolrCluster(RetrieveAndRank.java:168) 在 Test.artf.CreateASolrClusterExample.main(CreateASolrClusterExample.java:20)
使用 CURL
当我尝试使用如下所示的 curl 命令时,也会出现如下连接错误。
curl -X POST -u "":"" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters" -d ""
回应:
curl: (7) 无法连接到主机
当我在 crome 中将 link 放入 curl 命令时,它会弹出 id/password。给了id/passwordreturns我
之后
{"clusters":[]}
服务目前遇到了一些问题;团队意识到并正在努力。抱歉给您带来麻烦,请稍后再试。
我正在尝试使用 java class 创建一个 Create Solr 集群,如下面的步骤 link as shown here
但我收到以下错误,这可能是防火墙问题吗?
使用JAVA com.ibm.watson.developer_cloud.service.WatsonService 执行 SEVERE: IOException java.net.ConnectException: 无法连接到 gateway.watsonplatform.net/:443 在 com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:139) 在 com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:108) 在 com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184) 在 com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126) 在 com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java: 95) 在 com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281) 在 com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224) 在 com.squareup.okhttp.Call.getResponse(Call.java:286) 在 com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243) 在 com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205) 在 com.squareup.okhttp.Call.execute(Call.java:80 ) 在 com.ibm.watson.developer_cloud.service.WatsonService.execute(WatsonService.java:122) 在 com.ibm.watson.developer_cloud.service.WatsonService.executeRequest(WatsonService.java:183) 在 com.ibm.watson.developer_cloud.retrieve_and_rank.v1.RetrieveAndRank.createSolrCluster(RetrieveAndRank.java:168) 在 Test.artf.CreateASolrClusterExample.main(CreateASolrClusterExample.java:20)
使用 CURL 当我尝试使用如下所示的 curl 命令时,也会出现如下连接错误。
curl -X POST -u "":"" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters" -d ""
回应: curl: (7) 无法连接到主机
当我在 crome 中将 link 放入 curl 命令时,它会弹出 id/password。给了id/passwordreturns我
之后{"clusters":[]}
服务目前遇到了一些问题;团队意识到并正在努力。抱歉给您带来麻烦,请稍后再试。