Comment 5 for bug 885618

Revision history for this message
Gavin Panella (allenap) wrote :

Trying with BugzillaAPI directly:

$ bin/harness
>>> from lp.bugs.externalbugtracker.bugzilla import BugzillaAPI
>>> ebt = BugzillaAPI("https://bugs.freedesktop.org/")
>>> ebt.getExternalBugTrackerToUse()
<lp.bugs.externalbugtracker.bugzilla.BugzillaAPI object at 0x7d0f6d0>
>>> ebt.initializeRemoteBugDB(["37700"])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File ".../lib/lp/services/database/isolation.py", line 65, in wrapper
    return func(*args, **kwargs)
  File ".../lib/lp/bugs/externalbugtracker/bugzilla.py", line 689, in initializeRemoteBugDB
    'permissive': True,
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File ".../lib/lp/bugs/externalbugtracker/xmlrpc.py", line 117, in request
    return self._parse_response(StringIO(response), None)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
    p.feed(response)
  File "/usr/lib/python2.6/xmlrpclib.py", line 601, in feed
    self._parser.Parse(data, 0)
ExpatError: mismatched tag: line 90, column 4

I suspect that's an error page that can't be parsed as XML.