代理服务器:AttributeError:'NoneType'对象没有属性'clone'

时间:2019-05-27 09:30:48

标签: python-2.7

尝试使用Python 2.7在我的服务器上从github运行代理代码: https://github.com/yeukhon/proxpy

与插件一起: https://gist.githubusercontent.com/leonjza/5868963/raw/c32012bae676bbdda1eacaa86a266d16c4b6fa47/dtob.py

代码运行正常,但是当尝试建立实际连接时,会发生以下错误:

Exception happened during processing of request from ('89.xx.yy.zz', 42618)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/root/proxpy/proxpy/core.py", line 56, in __init__
    SocketServer.StreamRequestHandler.__init__(self, request, client_address, server)
  File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
    self.handle()
  File "/root/proxpy/proxpy/core.py", line 131, in handle
    res = self.doGET(host, port, req)
  File "/root/proxpy/proxpy/core.py", line 168, in doGET
    res = ProxyPlugin.delegate(ProxyPlugin.EVENT_MANGLE_RESPONSE, res.clone())
AttributeError: 'NoneType' object has no attribute 'clone'

谢谢

0 个答案:

没有答案