Page MenuHomePhabricator

Wikidata fetch: certain countries can't be fetched
Closed, ResolvedPublicBUG REPORT

Description

Description

Community members have mentioned, on telegram, that countries often don't load. United States and Canada are the ones I know of right now. This has also been mentioned near the end of https://www.wikifunctions.org/wiki/Talk:Z23753.

Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)

  1. Visit https://www.wikifunctions.org/view/en/Z6821
  2. Ask it to fetch either Q30/United States or Q16/Canada

Observed behavior

  • You will see the message Unable to run function. Please try again. (Depending on caching, you may have to wait up to 10 seconds).

Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • The Wikidata content should be successfully fetched and displayed.

Completion checklist

Event Timeline

Ah! Okay, so. When I run the orchestrator with

node --max-old-space-size=512 server.js

(which effectively mirrors prod), I am able to kill the orchestrator with the following function call:

{
    "Z1K1": "Z7",
    "Z7K1": "Z6821",
    "Z6821K1": {
        "Z1K1": "Z6091",
        "Z6091K1": "Q30"
    }
}

i.e., "fetch me a Canada." I cannot repro when I set the space size to 1024 or greater. So this does appear to be related to the amount of GC space available. If we look at the child task, we can see that the Wikidata item itself isn't directly responsible, but our processing probably is.

With our recent changes to make fetching more efficient, both Q16 and Q30 work fine now; can we call this Resolved?

DMartin-WMF claimed this task.

Yes, I think we can.