Suds 错误:httplib 中的 BadStatusLine [英] Suds Error: BadStatusLine in httplib

查看:43
本文介绍了Suds 错误:httplib 中的 BadStatusLine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 suds 0.3.6.在创建 suds 客户端时,我随机得到一个错误:

I am using suds 0.3.6. When creating a suds client, I randomly get an error:

httplib.py,_read_status(),第 355 行,类 httplib.BadStatusLine'

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?

谢谢!

推荐答案

这意味着服务器端存在问题,导致 HTTP 服务器回复一些垃圾而不是普通的HTTP/1.1 200 OK"(或类似)线.你无法解决这个问题.

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.

这篇关于Suds 错误:httplib 中的 BadStatusLine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆