MER-C/wiki-java

"UnknownError" due to maxlag in fetch()

maflcko opened this issue · 0 comments

Even though the lag was checked in fetch (

if (checkLag(connection))
), I get UnknownErrors of this form:

Exception in thread "main" java.lang.UnknownError: MW API error. Server response was:
<?xml version="1.0"?>
<api servedby="mw1203">
<error code="maxlag" info="Waiting for [ip]: 3.7246119976044 seconds lagged" xml:space="preserve">See https://commons.wikimedia.org/w/api.php for API usage
</error>
</api>

I am not sure how to handle this Error, as it is not clear where the bug originates.