简体   繁体   English

发出WSDL请求,获取连接错误:('连接中止。',错误(54,'通过对等方重置连接'))

[英]Making WSDL request, Getting Connection Error: ('Connection aborted.', error(54, 'Connection reset by peer'))

I am making a request to: https://test.mycardstorage.com/api/api.asmx?wsdl 我正在请求: https//test.mycardstorage.com/api/api.asmx?wsdl

wsdl = ' https://test.mycardstorage.com/api/api.asmx?wsdl ' client = Client(wsdl=wsdl) wsdl =' https ://test.mycardstorage.com/api/api.asmx?wsdl'client = Client(wsdl = wsdl)

However, I am getting the following error: requests.exceptions.ConnectionError: ('Connection aborted.', error(54, 'Connection reset by peer')) 但是,我收到以下错误:requests.exceptions.ConnectionError :('Connection aborted。',error(54,'Connection reset by peer'))

I've used the Zeep library and below am trying Suds. 我已经使用了Zeep库,下面我正在尝试使用Suds。

from suds.client import Client    
client = Client('https://test.mycardstorage.com/api/api.asmx?wsdl')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/suds/client.py", line 115, in __init__
self.wsdl = reader.open(url)
File "/Library/Python/2.7/site-packages/suds/reader.py", line 150, in open
d = self.fn(url, self.options)
File "/Library/Python/2.7/site-packages/suds/wsdl.py", line 136, in __init__
d = reader.open(url)
File "/Library/Python/2.7/site-packages/suds/reader.py", line 74, in open
d = self.download(url)
File "/Library/Python/2.7/site-packages/suds/reader.py", line 92, in download
fp = self.options.transport.open(Request(url))
File "/Library/Python/2.7/site-packages/suds/transport/https.py", line 62, in open
return HttpTransport.open(self, request)
File "/Library/Python/2.7/site-packages/suds/transport/http.py", line 67, in open
return self.u2open(u2request)
File "/Library/Python/2.7/site-packages/suds/transport/http.py", line 132, in u2open
return url.open(u2request, timeout=tm)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 54] Connection reset by peer>

had to upgrade to python 2.7.13 不得不升级到python 2.7.13

also had to install requests[security] 还必须安装请求[安全]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 连接中止。,Django 中的错误(104,“对等连接重置”) - Connection aborted., error(104, 'Connection reset by peer') in Django <urlopen error [Errno 54] Connection reset by peer> - <urlopen error [Errno 54] Connection reset by peer> Python:错误 54“对等方重置连接” - Python: Error 54 'Connection reset by peer' Python 抓取:错误 54“对等方重置连接” - Python scraping: Error 54 'Connection reset by peer' 获取 [Errno 54] python 中的对等方重置连接 - getting [Errno 54] Connection reset by peer in python 在 Azure ML 中获取 ('Connection aborted.', OSError(0, 'Error')) - getting ('Connection aborted.', OSError(0, 'Error')) in Azure ML Python 请求获取 (&#39;Connection aborted.&#39;, BadStatusLine(&quot;&#39;&#39;&quot;,)) 错误 - Python Requests getting ('Connection aborted.', BadStatusLine("''",)) error 使用 python 请求获取 (&#39;Connection aborted.&#39;, OSError(0, &#39;Error&#39;) 错误 - Getting ('Connection aborted.', OSError(0, 'Error') errors with python requests 将Selenium与ChromeDriver和Chrome通过Python结合使用时,“连接异常中止”,ConnectionResetError(104,“对等连接重置”) - 'Connection aborted.', ConnectionResetError(104, 'Connection reset by peer') using Selenium with ChromeDriver and Chrome through Python Python 脚本失败并出现('连接中止。',ConnectionResetError(104,'对等连接重置')) - Python script is failing with ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM