我正在尝试通过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有没有什么办法来解决这个问题?
非常感谢!
苏亚什
发布于 2014-12-05 07:18:35
您可以尝试从运行XNAT的服务器使用curl访问URL吗?一些简单的东西,比如:
curl -u sdb99:passwd -sL -w "%{http_code}\\n" "http://hd-hni-xnat.cac.cornell.edu:8443/xnat/data/projects" -o /dev/null这应该会告诉您确切的错误代码或条件,并使您更容易找出哪里出了问题。
https://stackoverflow.com/questions/27301829
复制相似问题