Open GreyCat opened 9 years ago
@blackwinter suggested to try ignoring warnings by :ignorewarnings => true
in MediaWiki::Gateway.new
- I confirm that it works around the issue.
Thanks for filing this issue.
For the record: The MediaWiki version used by Wikipedia (currently 1.25wmf1) is bleeding edge and not publicly released yet. The underlying change, however, has even greater ramifications (wikimedia/mediawiki-core@fdddf94) and will be released in 1.24, scheduled for next month.
Thanks for checking the Mediawiki version history for me. Wow, I never thought that Wikipedia devops are so bold to live off the bleeding edge in production %)
For better or worse, MediaWiki is Wikipedia, and they've been running those unreleased "wmf" versions for years.
Related to #76.
@blackwinter suggested to try ignoring warnings by :ignorewarnings => true in MediaWiki::Gateway.new - I confirm that it works around the issue.
Is it still necessary to use this workaround?
Here's another warning from MW 1.25, raised by MediaWiki::Gateway::Users#options
.
MediaWiki::APIError: API error: code 'warning', info 'API warning: action=tokens has been deprecated. Please use action=query&meta=tokens instead.'
This is not going to get fixed unless somebody sends in a pull request.
Also, given that WMF has now released an "official" client at https://github.com/wikimedia/mediawiki-ruby-api, I will likely be deprecating this library entirely soon.
.. given that WMF has now released an "official" client .. I will likely be deprecating this library entirely ..
Makes sense, thanks.
I have a mediawiki-gateway based bot that I'd like to run on http://ru.wikipedia.org/ - last time I tried it on about ~2013-12, and it was ok back then, but nowadays I always get the following error:
Basically, it seems that mediawiki-gateway tries to use
action=query&prop=info&intoken=edit
stuff, which seems to be deprecated now:It's probably a fairly vital issue, as it makes mediawiki-gateway totally unusable in current Wikipedia's installation environments, at least out of the box.
As far as I understand, it's not necessary to request a token, it would be given out automatically anyway in modern Mediawiki installations - probably this could be simply fixed by removing
intoken=
setting.