当我在查询控制台中执行下面的代码时,我得到了一个"SVC-SOCCONN“错误。我们在HTTP服务器的摘要处使用身份验证方法。请帮我解决这个问题。
xquery version "1.0-ml";
xdmp:http-put("http://example.com:8007/v1/documents?uri=my.xml",
<options xmlns="xdmp:http">
<authentication method="digest">
<username>xxxx</username>
<password>yyyyy</password>
</authentication>
<headers>
<Content-type>application/xml</Content-type>
<Accept>application/xml</Accept>
</headers>
</options>,
<mydata>this is xml for the PUT body</mydata>)错误: 1.0-ml SOCCONN: xdmp:http- PUT ("http://example.com:8007/v1/documents?uri=my.xml",.,这是PUT主体的xml )-套接字连接错误:等待xx.xxx.xxx.xxx:49860:超时
发布于 2022-06-09 14:12:40
这表示您无法连接到该端口。错误消息是报告端口49860,但您正在尝试通过8007进行通信。
有代理吗?
尝试通过浏览器访问http://example.com:8007端点,或者在运行查询控制台的服务器上使用curl,以确认确实可以连接到该端点。
https://stackoverflow.com/questions/72559913
复制相似问题