我在龙卷风中遇到这个错误:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/tornado/curl_httpclient.py", line 480, in _curl_header_callback
headers.parse_line(header_line)
File "/Library/Python/2.7/site-packages/tornado/httputil.py", line 189, in parse_line
name, value = line.split(":", 1)
ValueError: need more than 1 value to unpack
我有一个100个代理服务器列表,我正用它来拨打电话。使用其中一些代理进行呼叫时会发生这种情况。
request = tornado.httpclient.HTTPRequest(url)
request.proxy_host = proxy['host']
request.proxy_port = proxy['port']
HTTP_CLIENT.fetch(request, handle_response)
非常感谢任何帮助。