Python Forum

Full Version: Suds client response error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

We are using python suds client to connect to our internal web service. This works pretty well, but occasionally we get the following error which is hard to reproduce. Any idea if this is bug in suds itself and fixed in a later version ?

Thanks
Rajesh
Error:
result = service(*args) File "...\lib\python2.6\suds\client.py", line 539, in __call__ return client.invoke(args, kwargs) File "...\lib\python2.6\suds\client.py", line 598, in invoke result = self.send(msg) File "...\lib\python2.6\suds\client.py", line 627, in send result = self.succeeded(binding, reply.message) File "...\lib\python2.6\suds\client.py", line 659, in succeeded r, p = binding.get_reply(self.method, reply) File "...\lib\python2.6\suds\bindings\binding.py", line 148, in get_reply nodes = self.replycontent(method, soapbody) File "...\lib\python2.6\suds\bindings\document.py", line 75, in replycontent return body[0].children AttributeError: 'NoneType' object has no attribute 'children'
the error is resulting in body[0] being None.

I would just post an issue for them on their repo
https://bitbucket.org/jurko/suds/

EDIT:
The pypi one is old and outdated from 2010, make sure you are using the new one. As well as python2.6 is now considered obsolete. Even in a few years python2.x in general will no longer get updates.