[12:53:40] Hi everyone, not sure if this is the correct chan for query.wikidata.org [12:53:53] but https://tools.wmflabs.org/wikinity seems to recieve "403 forbidden" [12:55:08] relevant portion of code is https://github.com/wikimedia/labs-tools-wikinity/blob/master/src/app.py#L270-L273 [12:55:25] traceback is: https://www.irccloud.com/pastebin/TEIO8tmH/ [12:55:26] doesn’t seem to set a User-Agent header [12:55:43] not sure what SPARQLWrapper sends by default [12:55:50] ahh, so it probably uses python/requests or the like [12:55:52] but the default Python Requests User-Agent is completely blocked [12:55:54] thanks, seems like something to check into [12:55:55] that might be it [12:56:00] did it happen recently Lucas_WMDE ? [12:56:04] and is there a phab ref? [12:56:15] a month or two ago [12:56:32] that...isn't as recent as I thought [12:56:36] anyway, let's fix it [12:56:37] thanks! [12:57:21] but see https://lists.wikimedia.org/pipermail/wikidata/2019-June/013161.html for python-requests being blocked [12:57:29] thx [12:57:38] is there wikidata-announce? [12:57:40] (oh, apparently I never wrote a “no phab ticket afaik” message that the “but” was supposed to be replying to ^^) [12:57:42] for breaking changes like this one [12:57:57] there is wikidata-tech, and I think at least some emails like this reached it [12:58:15] but I think it’s debatable whether this is a breaking change [12:58:22] the User-Agent policy has existed for a while https://meta.wikimedia.org/wiki/User-Agent_policy [12:58:34] it’s just being enforced more strictly now, especially for that one particular user agent [12:58:52] one Phabricator task that’s certainly relevant is https://phabricator.wikimedia.org/T226709 [12:59:25] thx [12:59:34] * Urbanecm always forget about user agent policy [13:08:04] Java/... is another one that is blocked [13:09:51] is it? [13:09:58] python-requests is the only one I see in the varnish config [13:11:16] (and apparently even that one isn’t completely blocked as I thought, just throttled much more heavily) [13:18:50] that would explain why it worked sometime and sometime not [13:18:55] depended on traffic from Toolforge [13:27:25] Lucas_WMDE: seems to be working with https://gerrit.wikimedia.org/r/#/c/labs/tools/wikinity/+/533520 [13:27:27] thanks again [13:56:53] Urbanecm: great :)