Opened 5 weeks ago

Closed 5 weeks ago

#28393 closed defect (fixed)

use_mirrors broken for DescriptorDownloader

Reported by: irl Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords:
Cc: metrics-team Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

When using the use_mirrors option for DescriptorDownloader, I get this:

Traceback (most recent call last):
  File "bushel.py", line 21, in <module>
    for desc in downloader.get_consensus().run():
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 723, in get_consensus
    consensus_query = self.query(resource, **query_args)
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 811, in query
    return Query(resource, **args)
  File "/usr/lib/python3/dist-packages/stem/descriptor/remote.py", line 375, in __init__
    self.endpoints.append(stem.DirPort(endpoint[0], endpoint[1]))  # TODO: remove this in stem 2.0
  File "/usr/lib/python3/dist-packages/stem/__init__.py", line 571, in __init__
    raise ValueError("'%s' isn't a valid port" % port)
ValueError: 'None' isn't a valid port

This is potentially due to relays that don't have dir ports, but this is just speculation.

Child Tickets

Change History (1)

comment:1 Changed 5 weeks ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.