On Thu, Sep 27, 2012 at 02:33:27PM +0200, Łukasz Czyż wrote:
I want to parse some variable-length wiki texts using 'parse' action.
My problem is that API returns error if wiki text length exceeds some
value, say 1000 characters. In such a case API returns well-formatted
HTML page informing about unexpected error and it encourages to try
again later. It doesn't look like expected behavior, rather like some
fast-coded check. API documentation doesn't say anything about upper
length limit. Is there a way to deal with that? I wouldn't like
solution like 'splitting text into parts and parsing them separately'
because it can be really problematic in some cases e.g. with very long
lists ('#' markers).
If you're using GET, try using POST; it's possible your HTTP library or
a proxy is truncating the query string in some manner. Otherwise, please
provide the url and post data, as well as the exact text of the message
you're getting.
FYI, I just tried a GET request with several thousand characters of
lorem text, and it worked fine here. At some point, of course, you'll
get a 414 error from Wikimedia's servers, but that response isn't an API
response in any manner.