Skip to content
Chen edited this page Apr 13, 2018 · 8 revisions

Listed are some problems you might occur during the journey of development. If you found anything else that could expand this list, feel free to open an issue, or leave me a message on gitter!

I'm working with a private wiki, and I cannot login to it.

See [MediaWiki] Advanced usages#private-wikis.

Unexpected character encountered while parsing value: <.

Basically this is because WCL receives HTML when it expects JSON response. If it's the first time you come across this exception, please check whether you have used the correct MW API endpoint URL. Note that if the URL provided causes HTTP 301 redirects, client library will usually fail to forward the request to the redirect target (POST request will be converted to GET request, and request body is lost). As for more information, see #38.