简体   繁体   中英

Python: socket.error: [Error55] Connection reset by peer

I am trying to access XNAT server via PyXNAT. While doing so i get the following error which i think is an SSL error..

Central=Interface(server=' http://hd-hni-xnat.cac.cornell.edu:8443/xnat ') User: sdb99 Password:

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

Is there any work around to solve this problem ..?

Many Thanks in advance!!

Suyash

Can you try accessing the URL from the server where you're running XNAT using curl? Something simple like:

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

This should tell you the exact error code or condition and make it easier to figure out what's going wrong where.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM