I'm having a problem with the API on bgwiki, where it returns stale blockinfo property for a user whose block has already expired:
https://bg.wikipedia.org/w/api.php?action=query&format=json&list=users&usprop=blockinfo&ususers=Pankoantchev
{ "batchcomplete": "", "query": { "users": [ { "userid": 79518, "name": "Pankoantchev", "blockid": 444747, "blockedby": "PSS 9", "blockedbyid": 209881, "blockedtimestamp": "2018-10-13T16:38:24Z", "blockreason": "[[:m:Bot|Bot]]: AI identified [[:m:Wikipedia vandalism|vandalism]]. Disagree? Write to: admin-requests@wikimedia.bg", "blockexpiry": "20181014003824" } ] } }
As blockexpiry shows, the block has expired at 2018-10-14 00:38:24. Wikipedia's UI and Special:BlockList correctly show no active blocks on this user. But the API still returns block data, almost 9 hours later.
For comparison, here's a multi-user query with an additional correctly unexpired (infinity) block and a correctly expired one:
https://bg.wikipedia.org/w/api.php?action=query&format=json&list=users&usprop=blockinfo&ususers=Pankoantchev%7C%D0%98%D1%81%D1%82%D0%B8%D0%BD%D1%81%D0%BA%D0%B8%20%D0%91%D1%8A%D0%BB%D0%B3%D0%B0%D1%80%D0%B8%D0%BD%7CJtyniiii
{ "batchcomplete": "", "query": { "users": [ { "userid": 79518, "name": "Pankoantchev", "blockid": 444747, "blockedby": "PSS 9", "blockedbyid": 209881, "blockedtimestamp": "2018-10-13T16:38:24Z", "blockreason": "[[:m:Bot|Bot]]: AI identified [[:m:Wikipedia vandalism|vandalism]]. Disagree? Write to: admin-requests@wikimedia.bg", "blockexpiry": "20181014003824" }, { "userid": 241796, "name": "\u0418\u0441\u0442\u0438\u043d\u0441\u043a\u0438 \u0411\u044a\u043b\u0433\u0430\u0440\u0438\u043d", "blockid": 444749, "blockedby": "PSS 9", "blockedbyid": 209881, "blockedtimestamp": "2018-10-14T00:28:13Z", "blockreason": "[[:m:Bot|Bot]]: AI identified [[:m:Wikipedia vandalism|vandalism]]. Disagree? Write to: admin-requests@wikimedia.bg", "blockexpiry": "infinity" }, { "userid": 241022, "name": "Jtyniiii" } ] } }