Page MenuHomePhabricator

Unhandled Promise Rejection when MediaWiki API error returns 503
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

When there is an error returned by the MediaWiki API, an unhandled promise rejection is encountered.

Route: /v2/translate/ru/tg/Google
Error message:

503: MW API error from URL: http://localhost:6500/w/api.php?format=json&action=query&prop=pageprops%7Cpageimages%7Cdescription&piprop=thumbnail&pithumbsize=80&pilimit=4&ppprop=wikibase_item&titles=%D0%9A%D0%BE%D0%BC%D0%BF%D0%BB%D0%B5%D0%BA%D1%81+%D0%BD%D0%B5%D0%BF%D0%BE%D0%BB%D0%BD%D0%BE%D1%86%D0%B5%D0%BD%D0%BD%D0%BE%D1%81%D1%82%D0%B8%7C%D0%AD%D0%BC%D0%BE%D1%86%D0%B8%D0%BE%D0%BD%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9+%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D1%81%D1%81%7C%D0%9F%D1%81%D0%B8%D1%85%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F%7C%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F%3A%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8+%D0%BD%D0%B0+%D0%B8%D1%81%D1%82%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%D0%B8&redirects=true&continue=: api_error

Link to log: https://logstash.wikimedia.org/app/discover#/doc/0fade920-6712-11eb-8327-370b46f9e7a5/ecs-k8s-1-1.11.0-7-2025.09?id=M4qbPZUBF1zH-YDatN7M
Severity: 126 occurrences in the last 24 hours

unhandled-promise-rejection.png (963×2 px, 23 KB)

Event Timeline

abi_ triaged this task as Medium priority.
abi_ moved this task from Backlog to Maintenance and operational issues on the CX-cxserver board.

Change #1122239 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/services/cxserver@master] BatchedAPIRequest: Handle errors while processing the queue

https://gerrit.wikimedia.org/r/1122239

Nikerabbit set the point value for this task to 2.
abi_ removed abi_ as the assignee of this task.Mar 11 2025, 6:51 AM
abi_ moved this task from Maintenance and operational issues to Backlog on the CX-cxserver board.

Not working on this currently.

Change #1122239 merged by jenkins-bot:

[mediawiki/services/cxserver@master] BatchedAPIRequest: Handle errors while processing the queue

https://gerrit.wikimedia.org/r/1122239

Change #1151408 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update cxserver to 2025-05-28-042852-production

https://gerrit.wikimedia.org/r/1151408

Change #1151408 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2025-05-28-042852-production

https://gerrit.wikimedia.org/r/1151408

abi_ moved this task from Need QA to Done on the LPL Essential (LPL Essential 2025 Apr-Jun: CX) board.

No longer seeing Unhandled promise rejection errors in Logstash.