XZise added a comment.

Okay I think I'm closer to it now: The 'query' entry is missing because no 
pages are returned but on the first request the userinfo was returned which 
generated a 'query' entry. For some reason it's not on the second so that entry 
is missing and it stops iteration:

- `{'batchcomplete': '', 'continue': {'gcmcontinue': 
'page|434c45414e555042414245|25600657', 'continue': 'gcmcontinue||userinfo'}, 
'query': {'userinfo': {'id': 7818389, 'name': 'XZise'}}}`
- `{'batchcomplete': '', 'continue': {'gcmcontinue': 
'page|494d4d4143554c4154454845415254|5038287', 'continue': 
'gcmcontinue||userinfo'}}`

So the problem is that QueryGenerator must continue even if 'query' is missing. 
Or the MediaWiki itself has a bug and it should return a query entry even if 
it's empty.


TASK DETAIL
  https://phabricator.wikimedia.org/T84860

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise
Cc: Aklapper, Unicodesnowman, XZise, jayvdb, pywikipedia-bugs



_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to