Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • 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
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #17083
Closed
Open
Issue created Sep 15, 2015 by Trac@tracbot

Downloading server descriptors crashes with a TypeError

The crash happens randomly, it must be tested multiple times until it appears.

from stem.descriptor.remote import DescriptorDownloader

downloader = DescriptorDownloader(use_mirrors=True, timeout=120, retries=1,
                                  block=True)
downloader.get_server_descriptors().run()
Traceback (most recent call last):
  File "E:\dev\prs\main\tortest.py", line 5, in <module>
    downloader.get_server_descriptors().run()
  File "e:\dev\envs\py34_x86\Python\lib\site-packages\stem\descriptor\remote.py", line 293, in run
    return list(self._run(suppress))
  File "e:\dev\envs\py34_x86\Python\lib\site-packages\stem\descriptor\remote.py", line 304, in _run
    raise self.error
  File "e:\dev\envs\py34_x86\Python\lib\site-packages\stem\descriptor\remote.py", line 357, in _download_descriptors
    self.download_url = self._pick_url(use_authority)
  File "e:\dev\envs\py34_x86\Python\lib\site-packages\stem\descriptor\remote.py", line 347, in _pick_url
    authority = random.choice(filter(HAS_V3IDENT, get_authorities().values()))
  File "e:\dev\envs\py34_x86\Python\lib\random.py", line 253, in choice
    i = self._randbelow(len(seq))
TypeError: object of type 'filter' has no len()

Trac:
Username: trodun

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking