The following all return DBQueryError
https://en.wikipedia.org/w/api.php?action=query&generator=allpages&gapfilterlanglinks=withlanglinks&gaplimit=5&format=json&continue=
https://ar.wikipedia.org/w/api.php?action=query&generator=allpages&gapfilterlanglinks=withlanglinks&gaplimit=5&format=json&continue=
https://fr.wiktionary.org/w/api.php?action=query&generator=allpages&gapfilterlanglinks=withlanglinks&gaplimit=5&format=json&continue=
www.wikidata takes a long time, but does return a result
test.wikidata and test.wikipedia do not
https://test.wikipedia.org/w/api.php?action=query&generator=allpages&gapfilterlanglinks=withlanglinks&gaplimit=5&format=json&continue=
https://test.wikidata.org/w/api.php?action=query&generator=allpages&gapfilterlanglinks=withlanglinks&gaplimit=5&format=json&continue=
Note: this is a continuation of T18549, which was opened because pywikibot tests needed to be disabled, and I have tried to re-enable them now only to see the problem has not been fixed, or has since regressed. The tests are http://git.wikimedia.org/blob/pywikibot%2Fcore.git/c731cdb7b58adaf0f42c86bb838257af36e6e2f6/tests%2Fsite_tests.py#L410 , and they were commented out in this commit: http://git.wikimedia.org/commit/pywikibot%2Fcore.git/0da05211576892e91ee0e5e24ff3bb87828e2aaa