#32959: Catch HTTPError in generateFallbackDirLine.py when descriptors are 
missing
-------------------------------------+-------------------------------------
     Reporter:  teor                 |      Owner:  teor
         Type:  defect               |     Status:  assigned
     Priority:  Medium               |  Milestone:
    Component:  Core Tor/Fallback    |    Version:
  Scripts                            |   Keywords:  fallback-scripts-ci-
     Severity:  Normal               |  fail
Actual Points:                       |  Parent ID:
       Points:                       |   Reviewer:
      Sponsor:                       |
-------------------------------------+-------------------------------------
 {{{
 $ $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

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

Reply via email to