jpatokal / mediawiki-gateway

Ruby framework for MediaWiki API manipulation
Other
133 stars 50 forks source link

download method gives an internal_api_error_MWException #43

Closed lpouillo closed 10 years ago

lpouillo commented 11 years ago

HI and thank you for developping this great tool.

I have a problem with the download method.

mw = MediaWiki::Gateway.new(...) mw.login(...) mw.download('Topology.png')

/var/lib/gems/1.8/gems/mediawiki-gateway-0.5.1/lib/media_wiki/gateway.rb:806:in `get_response': API error: code 'internal_api_error_MWException', info 'Exception Caught: Internal error in ApiResult::setElement: Bad parameter' (MediaWiki::APIError)

Mediawiki version is 1.19.2-2

Thank you very much.

jpatokal commented 11 years ago

This appears to be a bug in MediaWiki itself, which is now fixed in master:

https://bugzilla.wikimedia.org/show_bug.cgi?id=41234

Please update your MediaWiki installation and try again.