Page MenuHomePhabricator

Token missing
Open, Needs TriagePublic

Description

Token missing in addwiki-api and addwiki-api-base.

PHP Fatal error: Uncaught Mediawiki\Api\UsageException: Code: notoken
Message: The "token" parameter must be set.
Result: {"error":{"code":"notoken","info":"The \"token\" parameter must be set.","*":"See https:\/\/commons.wikimedia.org\/w\/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https:\/\/lists.wikimedia.org\/mailman\/listinfo\/mediawiki-api-announce> for notice of API deprecations and breaking changes."},"servedby":"mw1276"} in /vendor/addwiki/mediawiki-api-base/src/MediawikiApi.php:374

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 13 2019, 2:05 PM
Yann added a comment.May 13 2019, 2:10 PM

This is important. Because of this the Delinker bot is down, and there is already a huge queue:
https://commons.wikimedia.org/wiki/User:CommonsDelinker/commands

Ankry added a subscriber: Ankry.May 13 2019, 3:02 PM
Steinsplitter added a comment.EditedMay 14 2019, 10:54 AM

Sorry, forgot to add that!

Exactly, the error is caused when the logout();[1] function is called.

https://github.com/addwiki/mediawiki-api-base/blob/1faa726371ef6d7c28eb81e5f269b9bf9a64973c/src/MediawikiApi.php#L490 (so SimpleRequest has to be extended with params['token'] in that line i guess)

Addshore moved this task from Incoming to In Progress on the Addwiki board.May 14 2019, 8:44 PM