Page MenuHomePhabricator

[Bug] /page/references failing locally on zhwiki
Open, HighPublic

Description

Steps to Reproduce

  1. Run mobileapps services locally with master at b8cbf8dc38b05ad27579f8cee2309ae62219677c
  2. Request http://localhost:6927/zh.wikipedia.org/v1/page/references/中國

Expected Results

Summary response

Actual Results

500 error

TypeError: Cannot read property 'mobileview' of undefined\n
    at addParsoidHead (/home/mholloway/code/wikimedia/mobileapps/lib/mobileview-html.js:43:26)\n
    at buildPage (/home/mholloway/code/wikimedia/mobileapps/lib/mobileview-html.js:118:5)\n
    at mwapi.getPageFromMobileview.then (/home/mholloway/code/wikimedia/mobileapps/routes/page/references.js:53:16)\n
    at tryCatcher (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/util.js:16:23)\n
    at Promise._settlePromiseFromHandler (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/promise.js:517:31)\n
    at Promise._settlePromise (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/promise.js:574:18)\n
    at Promise._settlePromise0 (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/promise.js:619:10)\n
    at Promise._settlePromises (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/promise.js:699:18)\n
    at _drainQueueStep (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/async.js:138:12)\n
    at _drainQueue (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/async.js:131:9)\n
    at Async._drainQueues (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/async.js:147:5)\n
    at Immediate.Async.drainQueues [as _onImmediate] (/home/mholloway/code/wikimedia/mobileapps/node_modules/bluebird/js/release/async.js:17:14)\n
    at runCallback (timers.js:705:18)\n
    at tryOnImmediate (timers.js:676:5)\n
    at processImmediate (timers.js:658:5)

Event Timeline

JoeWalsh created this task.Aug 1 2019, 9:07 PM
Restricted Application added subscribers: Cosine02, Aklapper. · View Herald TranscriptAug 1 2019, 9:07 PM
JoeWalsh claimed this task.Aug 1 2019, 9:07 PM
JoeWalsh triaged this task as High priority.
JoeWalsh moved this task from Needs triage to Kanban on the Product-Infrastructure-Team-Backlog board.
JoeWalsh updated the task description. (Show Details)

Change 527182 had a related patch set uploaded (by Joewalsh; owner: Joewalsh):
[mediawiki/services/mobileapps@master] Fix zhwiki references error

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

Mholloway updated the task description. (Show Details)Aug 1 2019, 9:26 PM
Mholloway updated the task description. (Show Details)

Change 527182 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Fix zhwiki references error

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