Opened 7 months ago

Closed 7 months ago

#32959 closed defect (fixed)

Catch HTTPError in generateFallbackDirLine.py when descriptors are missing

Reported by: teor Owned by: teor
Priority: Medium Milestone:
Component: Core Tor/Fallback Scripts Version:
Severity: Normal Keywords: fallback-scripts-ci-fail
Cc: teor Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

$ $PYTHON generateFallbackDirLine.py 9695DFC35FFEB861329B9F1AB04C46397020CE31 BA44A889E64B93FAA2B114E02C2A279A8555C533 001524DD403D729F08F7E5D77813EF12756CFA8D 5AFAC3D00E97D6733112CC9CA2A788691FA87125 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

128.31.0.34:9131 orport=9101 id=9695DFC35FFEB861329B9F1AB04C46397020CE31 # moria1

66.111.2.131:9030 orport=9001 id=BA44A889E64B93FAA2B114E02C2A279A8555C533 ipv6=[2610:1c0:0:5::131]:9001 # Serge

Traceback (most recent call last):

  File "generateFallbackDirLine.py", line 25, in <module>

    desc = stem.descriptor.remote.get_server_descriptors(fingerprint).run()[0]

  File "/usr/local/lib/python2.7/site-packages/stem/descriptor/remote.py", line 536, in run

    return list(self._run(suppress))

  File "/usr/local/lib/python2.7/site-packages/stem/descriptor/remote.py", line 547, in _run

    raise self.error

stem.DownloadFailed: Failed to download from http://154.35.175.225:80/tor/server/fp/001524DD403D729F08F7E5D77813EF12756CFA8D (HTTPError): Servers unavailable

The command "$PYTHON generateFallbackDirLine.py 9695DFC35FFEB861329B9F1AB04C46397020CE31 BA44A889E64B93FAA2B114E02C2A279A8555C533 001524DD403D729F08F7E5D77813EF12756CFA8D 5AFAC3D00E97D6733112CC9CA2A788691FA87125 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" exited with 1.

https://travis-ci.org/torproject/fallback-scripts/jobs/637451068#L406

Child Tickets

Change History (2)

comment:1 Changed 7 months ago by teor

Status: assignedmerge_ready

#28863 already had most of these fixes, but I made some extra ones in:

I'll merge after CI passes.

comment:2 Changed 7 months ago by teor

Resolution: fixed
Status: merge_readyclosed

Merged to master.

Note: See TracTickets for help on using tickets.