Page MenuHomePhabricator

KeyError in Siteinfo when network errors are occurring
Closed, DuplicatePublic

Description

An example

ERROR: test_fully_qualified_NS1_family (tests.link_tests.TestFullyQualifiedNoLangFamilyExplicitLinkParser)

Test ':wikidata:testwiki:Talk:Q6' on enwp is namespace 1.

Traceback (most recent call last):

File "/home/travis/build/wikimedia/pywikibot-core/tests/link_tests.py", line 372, in test_fully_qualified_NS1_family
  link.parse()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/page.py", line 4154, in parse
  if hasattr(self._site.namespaces()[self._namespace], 'case'):

KeyError: 0

Many more here:

https://travis-ci.org/wikimedia/pywikibot-core/jobs/39676782

And I'm quite confident there was another build in the last few weeks which has done this.


Version: core-(2.0)
Severity: normal

Details

Reference
bz72860

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:56 AM
bzimport set Reference to bz72860.
bzimport added a subscriber: Unknown Object (????).

It isnt happening frequently, and the solution is probably to fail with a different exception, so this isnt probably not critical to fix. (But bot operators do complain when they bots fall over half way through month long tasks because of a server problem)

I think the critical and central aspect of this bug was solved in T75122 .