XZise added a comment. Okay it now happened on Travis and the site properly returns a 502 status code as seen in line 1438 <https://travis-ci.org/wikimedia/pywikibot-core/jobs/67344236#L1438>:
testQueryApiGetter (tests.wikidataquery_tests.TestApiSlowFunctions) Test that we can actually retreive data and that caching works. ... WARNING: Http response status 502 WARNING: 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: '<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' ERROR So this is just an issue with our wikidataquery implementation that it is not checking whether the code is actually 200 but is parsing everything (you could argue that the server should return a json string in an error). TASK DETAIL https://phabricator.wikimedia.org/T89769 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: XZise, pywikibot-bugs-list, jayvdb, Aklapper _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
