Opened 3 months ago

Closed 8 weeks ago

#30282 closed defect (duplicate)

bandwidth_file_headers doesn't seem to be working

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

Description

Moria http://128.31.0.34:9131/tor/status-vote/current/authority has a value for bandwidth-file-headers

From stem master, I run the following:

import stem.descriptor.remote
authority = stem.descriptor.remote.get_authorities()['moria1']
downloader = stem.descriptor.remote.DescriptorDownloader(fall_back_to_authority = False, document_handler = stem.descriptor.DocumentHandler.DOCUMENT)
vote = downloader.query('/tor/status-vote/current/authority.z', default_params = False, endpoints=[(authority.address, authority.dir_port)]).run()[0]
vote.bandwidth_file_headers 

But I don't get any data...

Child Tickets

Change History (2)

comment:1 Changed 3 months ago by atagar

Thanks tom! This was a confusing one. It turns out you found a tor bug - reaching out to the network team: #30316

comment:2 Changed 8 weeks ago by atagar

Resolution: duplicate
Status: newclosed

Resolving this in favor of #30316.

If you'd like I can provide a workaround code snippet. This data is available within the descriptor object, but through the get_unrecognized_lines() method of the authority.

Note: See TracTickets for help on using tickets.