[go: up one dir, main page]

Page MenuHomePhabricator

Call media/math/render in local mathoid - mathoid.js
Open, Needs TriagePublic

Description

In Windows 2008. I install local a mediawiki website . I install the local service restbase, parsoid and mathoid.
Individually the services work fine. but when the page site call the especial mathstatus page fail Comparing the generated SVG with the reference.
Inspect the log of restbase service, send the next error {"name":"restbase","hostname":"STELMXDAIMLER","pid":2076,"level":40,"err":{"message":"404: not_found#route","name":"restbase","stack":"HTTPError: 404: not_found#route\n at HyperSwitch._request (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:267:19)\n at _createFilteredHandler (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:171:26)\n at tryCatcher (C:\\restbase-master\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at C:\\restbase-master\\node_modules\\bluebird\\js\\release\\method.js:15:34\n at handlerWrapper (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:394:37)\n at next (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:380:42)\n at Object.module.exports [as filter] (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\filters\\http.js:24:16)\n at handlerWrapper (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:392:27)\n at C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:398:28\n at HyperSwitch._filteredRequest (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:172:19)\n at HyperSwitch.(anonymous function) [as post] (C:\\restbase-master\\node_modules\\hyperswitch\\lib\\hyperswitch.js:432:21)\n at MathoidService._invalidateCache (C:\\restbase-master\\sys\\mathoid.js:191:22)\n at MathoidService._storeRenders (C:\\restbase-master\\sys\\mathoid.js:142:24)\n at hyper.post.then.res (C:\\restbase-master\\sys\\mathoid.js:170:18)\n at tryCatcher (C:\\restbase-master\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\restbase-master\\node_modules\\bluebird\\js\\release\\promise.js:512:31)","status":404,"body":{"type":"not_found#route","title":"Not found.","internalURI":"/wikimedia.org/sys/events/ wikimedia.org,sys,events, quien soy qs fin","method":"post","depth":2},"root_req":{"method":"get","uri":"/localhost/v1/media/math/render/mml/a2391acf09244b9dba74eb940e871a6be7e7973a","headers":{"cache-control":"no-cache","content-length":"0","user-agent":"wikimedia/multi-http-client v1.0","x-client-ip":"::1","x-forwarded-for":"::1","x-request-id":"eea5e590-33a9-11e9-9dec-00c266a3238b","x-request-class":"external"}},"request_id":"eea5e590-33a9-11e9-9dec-00c266a3238b","api_path":"/localhost/v1/media/math/render/{format}/{hash}","levelPath":"warn/bg-updates"},"msg":"404: not_found#route","time":"2019-02-18T18:20:55.874Z","v":0}

If I understand well, try to find the service in "/wikimedia.org/sys/events/". This url is in mathoid.js _invalidateCache method.

I don´t know if it is an error or an erro whe In configure the routes.

Regards

Related Objects

Event Timeline

mobrovac subscribed.

In order for Mathoid and RESTBase to work together well, you have to have the wikimedia.org domain configured in your RESTBase's config.yaml, much like the example config does.