1

我正在尝试通过 PyXNAT 访问 XNAT 服务器。这样做时,我收到以下错误,我认为这是 SSL 错误。

Central=Interface(server=' http ://hd-hni-xnat.cac.cornell.edu:8443/xnat') 用户:sdb99 密码:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/pyxnat/core/interfaces.py", line 228, in __init__
    self._get_entry_point()
  File "/Library/Python/2.7/site-packages/pyxnat/core/interfaces.py", line 268, in _get_entry_point
    raise e
socket.error: [Errno 54] Connection reset by peer

有什么办法可以解决这个问题..?

提前谢谢了!!

苏亚什

4

1 回答 1

0

您可以尝试使用 curl 从运行 XNAT 的服务器访问 URL 吗?像这样简单的东西:

curl -u sdb99:passwd -sL -w "%{http_code}\\n" "http://hd-hni-xnat.cac.cornell.edu:8443/xnat/data/projects" -o /dev/null

这应该告诉您确切的错误代码或条件,并更容易找出哪里出了问题。

于 2014-12-04T23:18:35.330 回答