Topic on Extension talk:Math/RESTBase

Domain "wikimedia.org" is hardcoded in mathoid.yaml

4
Libattery (talkcontribs)

I tried run Mathoid with Restbase but failed.

I got massage "Service unavailable bala.. " in my Restbase API page.

Then I found following lines in RESTbasePath/v1/mathoid.yaml

like uri: /wikimedia.org/sys/mathoid/check/{type}...

there are "wikimedia.org/sys/..."s.

I guess they should be "/{domain}/sys...", so I changed /wikimedia.org/sys... to /{domain}/sys..

Now, I can see the math APIs in my Restbase API page.

But, unfortunately, the math APIs don't work.

I got 404 error.

{ "type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found", "title": "Not found.", "method": "post", "uri": "MyRestbaseDomain/v1/media/math/check/tex" }

My Mathoid server is working normally.

any one have any idea?

if then, please share to me.

Magol (talkcontribs)

Did you find any solution to this?

Libattery (talkcontribs)
Prh47bridge (talkcontribs)

I've just sorted this out for my site. For the benefit of anyone else struggling with this, in the {domain:YOURDOMAIN}/{api:sys} section of the Restbase config.yaml you need to add:

/mathoid
  x-modules:
    - path: sys/mathoid.js
      options:
        host: http://localhost:10044
        cache_control: 's-maxage=0, max-age=86400'

Change the port number on the host line if Mathoid is using a different port.

Reply to "Domain "wikimedia.org" is hardcoded in mathoid.yaml"