I just installed RESTBase on my server following the instructions from https://www.mediawiki.org/wiki/RESTBase/Installation
When testing it it was working except for the /page/* links. They return:
{ "type":"https://mediawiki.org/wiki/HyperSwitch/errors/server_error", "title":"Site info fetch failed.", "method":"get", "detail":"SiteInfo is unavailable for wiki.MYDOMAIN.XX", "uri":"/wiki.MYDOMAIN.XX/v1/page/html/PAGENAME" }
My configuration is not special, just the example with the domain's changed where needed.
I checked the Parsoid logs but they show noting from these tests.
The command line where RESTBase is running shows:
{"name":"restbase","hostname":"MYSERVER","pid":23279,"level":50,"message":"500: server_error","res":{"name":"HTTPError","message":"500: server_error","status":500,"body":{"type":"server_error","title":"Site info fetch failed.","detail":"SiteInfo is unavailable for wiki.MYDOMAIN.XX"},"headers":{"access-control-allow-origin":"*","access-control-allow-methods":"GET,HEAD","access-control-allow-headers":"accept, content-type, content-length, cache-control, accept-language, api-user-agent, if-match, if-modified-since, if-none-match, dnt, accept-encoding","access-control-expose-headers":"etag","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","referrer-policy":"origin-when-cross-origin","x-xss-protection":"1; mode=block","content-security-policy":"default-src 'none'; frame-ancestors 'none'","x-content-security-policy":"default-src 'none'; frame-ancestors 'none'","x-webkit-csp":"default-src 'none'; frame-ancestors 'none'","cache-control":"private, max-age=0, s-maxage=0, must-revalidate","x-request-id":"a8e2f306-5d07-11e8-b3bb-22c501a0c228","server":"MYSERVER"}},"stack":"HTTPError: 500: server_error\n at Request._siteInfoCache.(anonymous function)._doRequest.catch (/home/ubuntu/cxserver/restbase/sys/action.js:324:23)\n at Request.tryCatcher (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/promise.js:512:31)\n at Promise._settlePromise (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/promise.js:569:18)\n at Promise._settlePromise0 (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/promise.js:614:10)\n at Promise._settlePromises (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/promise.js:689:18)\n at Async._drainQueue (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/async.js:133:16)\n at Async._drainQueues (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/async.js:143:10)\n at Immediate.Async.drainQueues (/home/ubuntu/cxserver/restbase/node_modules/bluebird/js/release/async.js:17:14)\n at runCallback (timers.js:810:20)\n at tryOnImmediate (timers.js:768:5)\n at processImmediate [as _immediateCallback] (timers.js:745:5)","latency":173,"root_req":{"method":"get","uri":"/wiki.suhasselt.be/v1/page/lint/Praesidium","headers":{"user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0","x-client-ip":"::ffff:xxx.xxx.xxx.xxx","x-forwarded-for":"::ffff:xxx.xxx.xxx.xxx","x-request-id":"a8e2f306-5d07-11e8-b3bb-22c501a0c228","x-request-class":"external"}},"request_id":"a8e2f306-5d07-11e8-b3bb-22c501a0c228","levelPath":"error/request","msg":"500: server_error","time":"2018-05-21T15:00:11.613Z","v":0}
Searching for a solution did not show any good results. Except for https://www.mediawiki.org/wiki/Topic:Ty9zrnylsr4bpdw1
This page said I should file a bugreport for this.
So how can I solve this or is this a bug?
Other info:
MediaWiki: 1.29.1
PHP: 7.0.30-0ubuntu0.16.04.1 (apache2handler)
NodeJS: v8.11.2
RESTBase Tested: v0.18.1 (Download from GitHub) and Current Master (21/05/2018)