Page MenuHomePhabricator

Errors on GBF.wiki
Closed, ResolvedPublic

Description

Origin: https://github.com/openzim/mwoffliner/issues/388

When attempting to get a pagebundle for the Main_Page of gbf.wiki I am getting a lot of errors.
I'm calling the following url with an http client: http://localhost:8000/gbf.wiki/v3/page/pagebundle/Main_Page

Config:

exports.setup = function (parsoidConfig) {
    parsoidConfig.setMwApi({
        uri: 'https://gbf.wiki/api.php',
    });
};

Example errors:

warn/api/siteinfo { logType: 'warn/api/siteinfo',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: null,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg:
   'Config Request Unrecognized value for parameter \'siprop\': languagevariants',
  longMsg:
   'Config Request\nUnrecognized value for parameter \'siprop\': languagevariants' }
info { logType: 'info',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: 182730,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg: 'redirecting to revision 182730 for pagebundle',
  longMsg: 'redirecting to revision\n182730\nfor\npagebundle' }
info { logType: 'info',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: 182730,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg: 'started parsing',
  longMsg: 'started parsing' }
warn/api/main { logType: 'warn/api/main',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: 182730,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg:
   'Image Info Request Unrecognized parameter: \'iibadfilecontexttitle\'',
  longMsg:
   'Image Info Request\nUnrecognized parameter: \'iibadfilecontexttitle\'' }

Event Timeline

Looks like an older verison of MediaWiki? Can you post what version it is running via Special:Version?

As per: https://gbf.wiki/Special:Version

Product Version
MediaWiki1.28.0
PHP7.0.27-1~dotdeb+8.1 (fpm-fcgi)
MariaDB10.0.32-MariaDB-0+deb8u1\
ICU52.1
LuaSandbox2.0.13-alpha
Lua5.1.5
Elasticsearch2.3.3

Hi @ssastry,
Is there any other information I can give you to make the debugging easier?

Joe

Arlolra triaged this task as Medium priority.Nov 20 2018, 7:22 PM
Arlolra subscribed.

Is there any other information I can give you to make the debugging easier?

It looks like the parse happened just fine. The extraneous logs are only warnings from the MediaWiki API, since Parsoid is requesting newish features that aren't available.

warn/api/siteinfo { logType: 'warn/api/siteinfo',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: null,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg:
   'Config Request Unrecognized value for parameter \'siprop\': languagevariants',
  longMsg:
   'Config Request\nUnrecognized value for parameter \'siprop\': languagevariants' }

This one was added in https://github.com/wikimedia/parsoid/commit/12f60b37f519d475b462a7bd06cf3b1792aac70e
and it looks like there's a hardcoded fallback. Language variant support is still a WIP so this shouldn't be an issue.

warn/api/main { logType: 'warn/api/main',
  wiki: 'wiki$0',
  title: 'Main_Page',
  oldId: 182730,
  reqId: null,
  userAgent: 'PostmanRuntime/7.3.0',
  msg:
   'Image Info Request Unrecognized parameter: \'iibadfilecontexttitle\'',
  longMsg:
   'Image Info Request\nUnrecognized parameter: \'iibadfilecontexttitle\'' }

This was added in https://github.com/wikimedia/parsoid/commit/fafe7291fdb03b68a03e578b4b91a8cfc32d6fbe
but doesn't seem like we're using result yet.

{"name":"parsoid","hostname":"pangolin.local","pid":6703,"level":40,"logType":"warn/api/main","wiki":"wiki$3","title":"Main_Page","oldId":"201230","reqId":null,"msg":"Template Fetch Unrecognized parameter: 'rvslots'","longMsg":"Template Fetch\nUnrecognized parameter: 'rvslots'","levelPath":"warn/api/main","time":"2018-11-20T19:14:46.712Z","v":0}

This was added in https://github.com/wikimedia/parsoid/commit/597932be72082eb00999eb71565c2ac43f724205
but should be backwards compatible with the older response (there's a test in there for it).

ssastry claimed this task.

Thanks @Arlolra for looking into this. I am going to mark this resolved since the newer version of Parsoid is handling the older MediaWiki API and is emitting warnings. There is nothing much to do on the Parsoid end here.