Page MenuHomePhabricator

Orchestrator on Notwikilambda is not correctly configured so can't dereference ZIDs from the wiki
Closed, ResolvedPublic

Description

When calling in the ApiSandbox

https://notwikilambda.toolforge.org/wiki/Special:ApiSandbox#action=wikilambda_function_call&format=json&wikilambda_function_call_zobject=%7B%0A%20%20%20%20%22Z1K1%22%3A%20%22Z7%22%2C%0A%20%20%20%20%22Z7K1%22%3A%20%22Z10024%22%2C%0A%20%20%20%20%22Z10024K1%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22Z1K1%22%3A%20%22Z40%22%2C%0A%20%20%20%20%20%20%20%20%22Z40K1%22%3A%20%22Z42%22%0A%20%20%20%20%7D%0A%7D

I get the following answer:

{
    "query": {
        "wikilambda_function_call": {
            "Orchestrated": {
                "success": "",
                "data": "{\"Z1K1\":\"Z22\",\"Z22K1\":\"Z23\",\"Z22K2\":{\"message\":\"request to http://mediawiki-web:8080/w/api.php?action=wikilambda_fetch&format=json&zids=Z10024 failed, reason: getaddrinfo ENOTFOUND mediawiki-web mediawiki-web:8080\",\"type\":\"system\",\"errno\":\"ENOTFOUND\",\"code\":\"ENOTFOUND\"}}"
            }
        }
    }
}

Orchestrator is configured to call to http://mediawiki-web:8080/ but should call to https://notwikilambda.toolforge.org/ instead

Event Timeline

Jdforrester-WMF renamed this task from Orchestrator on Notwikilambda is not correctly configured to Orchestrator on Notwikilambda is not correctly configured so can't dereference ZIDs from the wiki.Jul 15 2021, 8:51 AM

Alright, I added this to the LocalSettings.php:

$wgWikiLocation = 'https://notwikilambda.toolforge.org/w/api.php';

And now the result looks better:

{
    "query": {
        "wikilambda_function_call": {
            "Orchestrated": {
                "success": "",
                "data": "{\"Z1K1\":\"Z22\",\"Z22K1\":{\"Z1K1\":\"Z40\",\"Z40K1\":\"Z41\"},\"Z22K2\":\"Z23\"}"
            }
        }
    }
}

I’ll leave it to you to verify that this is actually correct :)

Meanwhile – why does that config variable exist at all? Isn’t it redundant with $wgServer or one of the related variables? (Also, why doesn’t it start with WikiLambda, but only with Wiki? Do you expect to move it to MediaWiki core?)

Isn’t it redundant with $wgServer or one of the related variables?

$wgInternalServer seems closer (if this is a “network-internal” server as opposed to an “external” one).

Wohoo! That's great. Verified, I am closing it.

I filed a new bug for the question you are raising regarding the name of the variable: T286752

Thanks!