When trying to save options on Commons using the API at https://commons.wikimedia.org/w/api.php, it takes extremely long, namely between 15 and 45 seconds. When the period is above than the timeout period (30 sec), the request results in an error due to timeout.
Other requests that I observed get the response quickly, as well as the same request on other wiki sites that I checked.
An example code that I executed:
new mw.Api().post({ action: 'options', assert: 'user', assertuser: 'Jack who built the house', optionname: 'userjs-convenientDiscussions-localSettings', optionvalue: '{"insertButtons":[["{{Done}}."],["{{Not done}}."]],"signaturePrefix":" ","haveInsertButtonsBeenAltered":true}', token: '<token here>', });
The same applies to action: "globalpreferences".
Occasionally, options are not saved at all, and this error is returned by the API after a long waiting period:
{ error: { code: "internal_api_error_DBQueryError" errorclass: "Wikimedia\Rdbms\DBQueryError" info: "[702876a1-db5f-4557-ad80-31597d47e445] Caught exception of type Wikimedia\Rdbms\DBQueryError" servedby: "mw1312" } }
Update: the same issue appears when I try to save user preferences using the standard interface at https://commons.wikimedia.org/wiki/Special:Preferences.