Page MenuHomePhabricator

Z6822/Fetch Wikidata property fails for P5137/item for this sense
Closed, ResolvedPublicBUG REPORT

Description

Description

On Wikifunctions.org, fetching P5137/item for this sense returns the error below. However, it works fine for other properties, such as instance of and demonym of.

Update (still on 28 February 2025): I've seen this error multiple times over the last few days. Just now, I ran it in the sandbox, and it completed successfully. Then I returned to the UI and ran it again and it completed successfully.

                             {
					"Z1K1": "Z5",
					"Z5K1": "Z507",
					"Z5K2": {
						"Z1K1": {
							"Z1K1": "Z7",
							"Z7K1": "Z885",
							"Z885K1": "Z507"
						},
						"Z507K1": {
							"Z1K1": "Z99",
							"Z99K1": {
								"Z1K1": "Z7",
								"Z7K1": "Z6822",
								"Z6822K1": {
									"Z1K1": "Z6092",
									"Z6092K1": "P5137"
								}
							}
						},
						"Z507K2": {
							"Z1K1": "Z5",
							"Z5K1": "Z500",
							"Z5K2": {
								"Z1K1": {
									"Z1K1": "Z7",
									"Z7K1": "Z885",
									"Z885K1": "Z500"
								},
								"Z500K1": "Call tuples failed in returnOnFirstError. Error: TypeError: this.functor_ is not a function."
							}
						}
					}
				}

The input to the API (wikilambda_function_call_zobject) looks okay: {"Z1K1":"Z7","Z7K1":"Z6822","Z6822K1":{"Z1K1":"Z6092","Z6092K1":"P5137"}}

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/Z6822
  2. Under Enter inputs, type P5137 and then select "item for this sense" in the drop-down
  3. Click Run function

Observed behavior

  • In theDetails dialog, one sees Error in evaluation
  • Using Developer tools, one can see the error and input objects mentioned above

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

  • The property should be fetched and then displayed, with no error

Completion checklist

Event Timeline

DMartin-WMF renamed this task from Z6822/Fetch Wikidata property fails for P5137/item for this sense, in the UI to Z6822/Fetch Wikidata property fails for P5137/item for this sense.
DMartin-WMF claimed this task.

Since my experience described in the Update to the Description, I'm not able to reproduce this, so closing.