[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #17083 [Stem]: Downloading server descriptors crashes with a TypeError



#17083: Downloading server descriptors crashes with a TypeError
------------------------+------------------------
 Reporter:  trodun      |          Owner:  atagar
     Type:  defect      |         Status:  new
 Priority:  normal      |      Milestone:
Component:  Stem        |        Version:
 Keywords:  descriptor  |  Actual Points:
Parent ID:              |         Points:
------------------------+------------------------
 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()
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17083>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs