I am using suds 0.3.6. When creating a suds client, I randomly get an error:
httplib.py, _read_status(), line 355, class httplib.BadStatusLine’
Here is the code used to create the client:
imp = Import('http://www.w3.org/2001/XMLSchema')
imp.filter.add('http://tempuri.org/encodedTypes')
imp.filter.add('http://tempuri.org/')
self.doctor = ImportDoctor(imp)
self.client = Client(self.URL,doctor=self.doctor)
What does this error mean and how can I fix it?
Thanks!
That means there is a problem on the server side which causes the HTTP server to reply with some junk instead of an ordinary ‘HTTP/1.1 200 OK’ (or similar) line. You can’t fix that.