jpatokal / mediawiki-gateway

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

New continue system #78

Open sigmike opened 9 years ago

sigmike commented 9 years ago

When I run any command on the French Wikipedia API I get this error:

mediawiki-gateway-1.0.0/lib/media_wiki/gateway.rb:227:in `warning': API error: code 'warning', info 'API warning: Formatting of continuation data will be changing soon. To continue using the current formatting, use the 'rawcontinue' parameter. To begin using the new format, pass an empty string for 'continue' in the initial query.' (MediaWiki::APIError)

I temporarily added rawcontinue: '' to all my calls to fix the problem.

sigmike commented 9 years ago

Actually adding ignorewarnings: true to the gateway initializer is easier.

blackwinter commented 9 years ago

Thanks for your report. I'll look into it when time allows.

blackwinter commented 9 years ago

The new continue system is not backwards compatible. We need to find a way to handle this gracefully (#76), but I don't see myself tackling this overall issue anytime soon.