Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https server request a http url using suds , and then timeout #5

Open
beyourselfpy opened this issue Jun 7, 2017 · 0 comments
Open

Comments

@beyourselfpy
Copy link

server: using https,
url I request : http,
suds version: 0.3.7
system version: Linux version 4.4.41-36.55.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) )

my code:
from suds.client import Client
url = 'http://gboss.id5.cn/services/QueryValidatorServices?wsdl'
service = Client(url).service

error:
File "../../src/base/id_verify_tools.py", line 157, in get_result
service = Client(url).service
File "/usr/local/lib/python2.7/site-packages/suds/client.py", line 109, in init
self.wsdl = Definitions(url, options)
File "/usr/local/lib/python2.7/site-packages/suds/wsdl.py", line 172, in init
root = p.parse(url=url).root()
File "/usr/local/lib/python2.7/site-packages/suds/sax/parser.py", line 133, in parse
fp = self.transport.open(Request(url))
File "/usr/local/lib/python2.7/site-packages/suds/transport/https.py", line 69, in open
return HttpTransport.open(self, request)
File "/usr/local/lib/python2.7/site-packages/suds/transport/http.py", line 69, in open
fp = self.__open(u2request)
File "/usr/local/lib/python2.7/site-packages/suds/transport/http.py", line 107, in __open
return self.urlopener.open(u2request)
File "/usr/lib64/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 1230, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.7/urllib2.py", line 1203, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib64/python2.7/httplib.py", line 1136, in getresponse
response.begin()
File "/usr/lib64/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.7/httplib.py", line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib64/python2.7/socket.py", line 480, in readline
data = self._sock.recv(self._rbufsize)
timeout: timed out

Please help me find out why, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant