Topic on Manual talk:Mathoid

Test not producing expected result

3
Prh47bridge (talkcontribs)

When Mathoid is running I try to test it using:

curl -d 'q=E=mc^2' localhost:10044

as per the manual. Instead of the expected result I get:

{"status":500,"type":"internal_error","title":"TypeError","detail":"Cannot read property 'semantic' of undefined","method":"POST","uri":"/","success":false,"log":"Cannot read property 'semantic' of undefined","error":""}

My log shows:

{"name":"mathoid","hostname":"ns3299566.ip-5-135-154.eu","pid":1442,"level":50,"message":"500: internal_error","stack":"TypeError: Cannot read property 'semantic' of undefined\n    at srePostProcessor (/usr/lib/node_modules/mathoid/lib/math.js:118:16)\n    at BBPromise.then.then (/usr/lib/node_modules/mathoid/lib/math.js:299:20)\n    at tryCatcher (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/promise.js:693:18)\n    at Async._drainQueue (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:133:16)\n    at Async._drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:143:10)\n    at Immediate.Async.drainQueues (/usr/lib/node_modules/mathoid/node_modules/bluebird/js/release/async.js:17:14)\n    at runCallback (timers.js:789:20)\n    at tryOnImmediate (timers.js:751:5)\n    at processImmediate [as _immediateCallback] (timers.js:722:5)","status":500,"type":"internal_error","detail":"Cannot read property 'semantic' of undefined","levelPath":"error/500","request_id":"06e8ae51-0c1c-11e8-a75a-adde2b46ba51","request":{"url":"/","headers":{"user-agent":"curl/7.47.0","content-length":"8","content-type":"application/x-www-form-urlencoded","x-request-id":"06e8ae51-0c1c-11e8-a75a-adde2b46ba51"},"method":"POST","params":{"0":"/"},"query":{},"remoteAddress":"127.0.0.1","remotePort":53513},"msg":"500: internal_error","time":"2018-02-07T15:31:55.216Z","v":0}

nodejs version is 8.9.4.

Any ideas?

Prh47bridge (talkcontribs)

Why was this marked as resolved? No solution was offered on here. I still have the problem. So how has it been resolved?

Mochome (talkcontribs)

I also face the exact same problem.

I have installed mathoid on Ubuntu 18.04. It used to work correctly, but recently it has been displayed as "Conversion error. Server ("cli") reported: " on mediawiki.

When I run:

curl -d 'q=E=mc^2' myserver:10044     (myserver is IP address of server running mathoid)

I get:

{"status":500,"type":"internal_error","title":"TypeError","detail":"Cannot read property 'semantic' of undefined","method":"POST","uri":"/","success":false,"log":"Cannot read property 'semantic' of undefined","error":""}

nodejs version is 8.10.0

Are there any workarounds?

Reply to "Test not producing expected result"