nskinkel / oppy

A Tor client (onion proxy) implementation in Python
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

Protocol update killed oppy #142

Open JuniorJPDJ opened 7 years ago

JuniorJPDJ commented 7 years ago

I'm getting this error when trying to use oppy:

2017-06-18 16:28:29 INFO oppy will listen for connections on port 10050.
2017-06-18 16:28:29 INFO But we need to build some circuits first...
2017-06-18 16:28:29 INFO Retrieving network status information.
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 103, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 86, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
    why = selectable.doRead()
  File "/usr/lib/python2.7/site-packages/twisted/internet/tcp.py", line 208, in doRead
    return self._dataReceived(data)
  File "/usr/lib/python2.7/site-packages/twisted/internet/tcp.py", line 214, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/usr/lib/python2.7/site-packages/twisted/protocols/tls.py", line 330, in dataReceived
    self._flushReceiveBIO()
  File "/usr/lib/python2.7/site-packages/twisted/protocols/tls.py", line 295, in _flushReceiveBIO
    ProtocolWrapper.dataReceived(self, bytes)
  File "/usr/lib/python2.7/site-packages/twisted/protocols/policies.py", line 120, in dataReceived
    self.wrappedProtocol.dataReceived(data)
  File "/usr/lib/python2.7/site-packages/twisted/internet/endpoints.py", line 125, in dataReceived
    return self._wrappedProtocol.dataReceived(data)
  File "oppy/connection/connectionbuildtask.py", line 87, in dataReceived
    cell = Cell.parse(self._buffer)
  File "oppy/cell/cell.py", line 131, in parse
    return cls._parse(data, h)
  File "oppy/cell/cell.py", line 173, in _parse
    cell._parsePayload(data)
  File "oppy/cell/varlen.py", line 326, in _parsePayload
    self.num_certs))
oppy.cell.exceptions.BadPayloadData: CertsCell cannot have more than 3 certificates per cell. Found 5.

When I change max number of certs per cell I'm getting

oppy.cell.exceptions.BadPayloadData: Got cert type 4, but oppy only supports cert types (1, 2, 3).