gpt4 book ai didi

node.js - 在 Node 中的代理后面访问 Watson 检索和排名

转载 作者:太空宇宙 更新时间:2023-11-03 21:55:29 25 4
gpt4 key购买 nike

我需要知道 R&R 服务是否可以在代理后面使用。请看下一部分,看看我的调查。我正在使用的代码在我家里工作。 (没有防火墙/没有代理,只有路由器)

<小时/>

我从下面的代码开始。 https://console.eu-gb.bluemix.net/catalog/starters/personality-insights-nodejs-web-starter

我尝试在本地执行它,它正在使用以下配置来安装模块。

npm config set registry http://registry.npmjs.org
npm config set proxy http://x.x.x.x:xx
npm config set https-proxy http://x.x.x.x:xx
npm config set strict-ssl false
set http_proxy=http://x.x.x.x:xx
set https_proxy=http://x.x.x.x:xx
set HTTP_PROXY=http://x.x.x.x:xx
set HTTPS_PROXY=http://x.x.x.x:xx

当它工作时,我开始玩 R&R。但我只是遇到了一个错误。

Error searching for documents: Error: connect ETIMEDOUT 158.85.132.88:443

其中ip地址对应gateway.watsonplatform.net

ping gateway.watsonplatform.net
PING gateway.watsonplatform.net (158.85.132.88) 56(84) bytes of data.

由于防火墙,ping 被阻止

在我的调查过程中,我发现每次发送两个 ICMP 请求时执行 R&R 服务测试时。

packet listening

可能是因为防火墙的原因。但为什么这个服务需要发送 ICMP 数据包呢?

简单回顾一下:

  1. 代码在没有防火墙/没有代理的情况下工作
  2. 个性洞察服务在代理/防火墙后面运行
  3. R&R 不是

最佳答案

EDIT

After some investigations I've found that there was a bug in the Solr-client so it is currently impossible to make it work. More info here on this github issue.

关于node.js - 在 Node 中的代理后面访问 Watson 检索和排名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42371823/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com