Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #30018

Closed
Open
Created Apr 04, 2019 by Iain Learmonth@irl

Unable to download consensus using an ORPort

When trying to use an ORPort to download a consensus, it always fails with this error:

>>> from stem import ORPort
>>> from stem.descriptor.remote import get_consensus
>>> tor26 = ORPort("86.59.21.38", 443)
>>> get_consensus(endpoints=[tor26])
<stem.descriptor.remote.Query object at 0x7f8579799080>
>>> _.run()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    _.run()
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 446, in run
    return list(self._run(suppress))
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 457, in _run
    raise self.error
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 511, in _download_descriptors
    self.content, self.reply_headers = _download_from_orport(endpoint, self.compression, self.resource)
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 854, in _download_from_orport
    response = b''.join([cell.data for cell in circ.send(RelayCommand.DATA, request, stream_id = 1)])
  File "/usr/lib/python3/dist-packages/stem/client/__init__.py", line 262, in send
    raise stem.ProtocolError('Circuit response should be a series of RELAY cells, but received an unexpected size for a
 response: %i' % len(reply))
stem.ProtocolError: Circuit response should be a series of RELAY cells, but received an unexpected size for a response:
 4048
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking