Skip to content

IndexError in the client #12

Description

@AadityaNair

After the latest update, Dtella gives this error:

C - Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
    why = selectable.doRead()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 214, in doRead
    return self._dataReceived(data)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 220, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/usr/lib64/python2.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
    self.lineReceived(line)
--- <exception caught here> ---
  File "/home/Prometheus/dtella/dtella/client/dc.py", line 98, in lineReceived
    fn(*args)
  File "/home/Prometheus/dtella/dtella/client/dc.py", line 162, in d_Key
    self.sendLine("$Key %s" % lock2key(self.lock))
  File "/home/Prometheus/dtella/dtella/common/util.py", line 96, in lock2key
    key[0] = lock[0] ^ lock[-1] ^ lock[-2] ^ 5
exceptions.IndexError: array index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions