Page MenuHomePhabricator

testQueryApiGetter is failing with "502 Bad Gateway"
Closed, DeclinedPublic

Description

https://travis-ci.org/wikimedia/pywikibot-core/jobs/205736366#L4590 (Job #3875.2)

======================================================================

ERROR: testQueryApiGetter (tests.wikidataquery_tests.TestApiSlowFunctions)

Test that we can actually retreive data and that caching works.

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/travis/build/wikimedia/pywikibot-core/tests/wikidataquery_tests.py", line 274, in testQueryApiGetter

    data = w.query(q)

  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/wikidataquery.py", line 624, in query

    data = self.getDataFromHost(fullQueryString)

  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/wikidataquery.py", line 604, in getDataFromHost

    % (url, data))

ServerError: Data received for https://wdq.wmflabs.org/api?q=claim%5B105%5D%20AND%20noclaim%5B225%5D%20AND%20claim%5B100%5D but no JSON could be decoded: u'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.4.6 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n'

----------------------------------------------------------------------

I don't know when this error has started to show up, but I checked a few of the recent logs and the oldest one I checked was 3773.3 (nearly 2 months ago) and the error was still there.

Here is a list of some of other recent job numbers that this error has occurred in them:

3857.16
3857.16
3857.1
3857.1
3857.7
3857.7
3858.16
3858.16
3862.2
3862.2
3862.4
3862.4
3862.8
3862.8
3863.1
3863.1
3864.11
3864.11
3867.4
3867.4
3867.8
3867.8
3869.3
3869.3
3869.6
3869.6
3870.1
3870.1
3870.5
3870.5
3873.16
3873.16

https://wdq.wmflabs.org/api