I have a long running script traversing through the contributions of InternetArchiveBot, at some point the API will simply return [XXeLMgpAIDoAAEAw8J8AAABK] Caught exception of type InvalidArgumentException
Here's the GET string that triggers it.
action=query&format=json&list=allrevisions&arvprop=ids%7Ctimestamp%7Cflags%7Ccomment%7Cuser&arvlimit=max&arvuser=InternetArchiveBot&arvnamespace=0&arvstart=2019-08-06T00%3A00%3A00.000Z&arvdir=newer