Page MenuHomePhabricator

safe guard checks for functions on parsed objects
Closed, ResolvedPublic

Description

I found one full request flow from one request-id of this but running it locally, it didn't render the error:

  • Z1.isValidated() is not a function ex

These I was not able reproduce locally; there wasn't a full request lifecycle linked to the request-id's of these error logs that would aid me in reproducing them:

  • Z1.isFullyResolved is not a function ex
  • this.functor_ is not a function ex

These I was able to reproduce and address them in the MR:

  • TypeError: cannot read properties of undefined (reading 'z6k1') ex
  • TypeError: Cannot convert undefined or null to object ex
  • TypeError: Cannot read properties of null (reading 'Z9K1'). ex

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
fail fast when objects are undefined and add debug logsrepos/abstract-wiki/wikifunctions/function-orchestrator!460ecarggrace/T406075/add-safe-guards-on-json-objsmain
Customize query in GitLab

Event Timeline

ecarg changed the task status from Open to In Progress.
ecarg triaged this task as Medium priority.
ecarg updated the task description. (Show Details)
ecarg updated the task description. (Show Details)
ecarg updated the task description. (Show Details)
ecarg updated the task description. (Show Details)

Change #1211875 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-11-18-175356 to 2025-11-26-175208

https://gerrit.wikimedia.org/r/1211875

Change #1211875 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-11-18-175356 to 2025-11-26-175208

https://gerrit.wikimedia.org/r/1211875

Some of these are pending local reproducibility and will be completed in followup tasks; new error returns addressed in the linked MR are resolved