Closed CXuesong closed 4 years ago
Related announcement: https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2020-February/000151.html
The error codes that may be changing are some of those representing invalid values for API parameters. Notably, the following will change:
- "noX", indicating that a required parameter was not specified, becomes "missingparam".
- "unknown_X", indicating that an unrecognized value was specified for an enumerated-value parameter, becomes "badvalue".
- "too-many-X", indicating that too many values were supplied to a multi-valued parameter, becomes "toomanyvalues".
- "baduser_X", "badtimestamp_X", and so on become "baduser", "badtimestamp", and so on.
Note this is not a comprehensive list, other codes may be changing as well.
This is causing WCL throwing
OperationFailedException (badvalue)
instead ofInvalidActionException
upon invalidaction=
value.Endpoint
https://test2.wikipedia.org/w/api.php on wikimedia/mediawiki@73e5f38771863f3b16d0c8ae65ebb131dc84d648.
Failed CI run
https://github.com/CXuesong/WikiClientLibrary/commit/c0037a6ab9bf99123151f0c93b00fa15ad1a74e1/checks?check_suite_id=461980978
Failed output