> On 5 Jun 2017, at 15:06, David Fifield <david@xxxxxxxxxxxxxxx> wrote: > >> You asked your bridge for its server descriptor and it gave it to you. >> >> Did you try: >> print controller.get_extrainfo_descriptors("8B5F0BD647B3C4AF2C57F148FF6A1FB8B695B0AE") >> >> https://stem.torproject.org/api/descriptor/remote.html#stem.descriptor.remote.DescriptorDownloader.get_extrainfo_descriptors >> >> Since your bridge knows its own extra info descriptor, it should serve it to you. >> >> I don't know how to find a server that caches *all* bridge extra infos. >> Maybe you should try running these queries against the bridge authority? > > get_extrainfo_descriptors doesn't work as a method of > stem.control.Controller: > AttributeError: 'Controller' object has no attribute 'get_extrainfo_descriptors' > > Calling get_extrainfo_descriptors from stem.descriptor.remote returns an > empty list. (499D92E08769BFC0B7941C74031335B9EC9E9BAE is the new > extra-info-digest I got from running just now.) > import stem.descriptor.remote > print list(stem.descriptor.remote.get_authorities()) > print list(stem.descriptor.remote.get_server_descriptors("C8CBDB2464FC9804A69531437BCF2BE31FDD2EE4")) > print list(stem.descriptor.remote.get_extrainfo_descriptors("499D92E08769BFC0B7941C74031335B9EC9E9BAE")) > This is the output. Bifroest is in the get_authorities list, so I assume > it's querying the bridge authority somewhere in there. > ['maatuska', 'tor26', 'Bifroest', 'longclaw', 'dizum', 'gabelmoo', 'moria1', 'dannenberg', 'Faravahar'] > [] > [] I think the documentation at: https://stem.torproject.org/api/descriptor/remote.html#stem.descriptor.remote.Query is out of date: as far as I know, newer stem versions try fallback directories rather than authorities. Even if that's not the case, stem will choose a random authority for you, which will (8/9 times) tell you that it knows nothing about any bridge extra infos. (I don't think authorities cache bridge extra infos.) Try passing Bifroest's address and DirPort to the endpoints= argument to get_extrainfo_descriptors(): https://stem.torproject.org/api/descriptor/remote.html#stem.descriptor.remote.Query T -- Tim Wilson-Brown (teor) teor2345 at gmail dot com PGP C855 6CED 5D90 A0C5 29F6 4D43 450C BA7F 968F 094B ricochet:ekmygaiu4rzgsk6n xmpp: teor at torproject dot org ------------------------------------------------------------------------
Attachment:
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ tor-dev mailing list tor-dev@xxxxxxxxxxxxxxxxxxxx https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev