Page MenuHomePhabricator

Orchestrator catching error "Added label "message" is not included in initial labelset: [ 'error', 'reqId' ]"
Closed, ResolvedPublicBUG REPORT

Description

Description

The entire message, which is the value of Z500K1 and occurs nested inside an instance of Z507, is this:

Call tuples failed in returnOnFirstError. Error: Error: Added label "message" is not included in initial labelset: [ 'error', 'reqId' ].

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

  1. This can be reproduced by following the instructions in T378414 (and looking in the Network tab of Developer tools to see the error).

Observed behavior

  • Sometime in the last several days, a different error message (discussed in T378414) changed to this one, which, from the mention of reqId, might have to do with logging (?). It's possible this error message might prevent the surfacing of more pertinent error messages.

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

  • * Whatever is causing this error should be addressed so it doesn't occur anymore

Completion checklist

Event Timeline

This is strange to me bc the error seems to be coming from the Prom Metrics client saying that we're trying to create a metric with a label that it does not have, in this case function_orchestrator_function_implementation_error_count (this is the one with the labels: [ 'error', 'reqId' ]), but I don't see in the code where that is happening. We give the function sendImplementationErrorMetrics( req, errorMessage ) just a request Object and the err Object in a catch block, not anything message...

  • maybe the objects are coming through as different types at various times?
  • strange reuse of a cache sometime/place?
  • some implicit label addition by middleware and/or wrapper?

If I'm out of ideas, I can add an optional 'label' to this metric, so that it can take in a 'message' label. :/

Messing around with a couple Metric functions locally, I notice that errors that occur with these functions all get nested into this one particular exception, e.g.
"Call tuples failed in returnOnFirstError. Error: Error: Invalid number of arguments (4): \"Z881, true, , 688d9b4b7909df90de3187b4\" for label names (5): \"sammy, Z7_function_identity, isBuiltIn, implementationZID, requestId\"..". So maybe this is just proving that we need to handle our errors earlier.

Change #1105362 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-11-27-074306 to 2024-12-17-184905

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

Change #1105362 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-11-27-074306 to 2024-12-17-184905

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from version: 2025-01-22-203140 to 2025-01-28-144249

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

Change #1115032 abandoned by Cory Massaro:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from version: 2025-01-22-203140 to 2025-01-28-144249

Reason:

already done

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