Page MenuHomePhabricator

cxserver: Cannot read properties of undefined (reading 'pages')
Closed, ResolvedPublic

Description

This is occurring in cxserver log since couple of days:

Full error:

TypeError: Cannot read properties of undefined (reading 'pages')
    at processResult (/srv/service/lib/mw/BatchedAPIRequest.js:85:23)
    at tryCatcher (/srv/service/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/srv/service/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/srv/service/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/srv/service/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/srv/service/node_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/srv/service/node_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/srv/service/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/srv/service/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues [as _onImmediate] (/srv/service/node_modules/bluebird/js/release/async.js:15:14)
    at process.processImmediate (node:internal/timers:471:21)

Logstash URL: https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-k8s-1-7.0.0-1-2023.12.05?id=P_GjOIwBySCoT0gdG8PH

Impact: Unknown.

Event Timeline

After the migration to node fetch, the error is still there:

	TypeError: Cannot read properties of undefined (reading 'pages')
    at processResult (/srv/service/lib/mw/BatchedAPIRequest.js:85:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Example

About 9 instances in an hour. we should fix this

Change 1012464 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/services/cxserver@master] BatchedAPIRequest: Prevent javascript errors, handle redirects better

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

Change 1012464 merged by jenkins-bot:

[mediawiki/services/cxserver@master] BatchedAPIRequest: Prevent javascript errors, handle redirects better

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

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

[operations/deployment-charts@master] Update cxserver to 2024-03-20-072017-production

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

Change 1013047 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2024-03-20-072017-production

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

Mentioned in SAL (#wikimedia-operations) [2024-03-21T05:36:26Z] <kart_> Updated cxserver to 2024-03-20-072017-production (T352739)

This error no longer happening in production.