{"record":{"id":"7d139b0eb46c00ce","repo":"temporalio/temporal","slug":"internal-error-reference-id-v-7d139b","errorCode":null,"errorMessage":"internal error, reference-id: %v","messagePattern":"internal error, reference-id: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"components/callbacks/chasm_invocation.go","lineNumber":41,"sourceCode":"\ntype chasmInvocation struct {\n\tnexus      *persistencespb.Callback_Nexus\n\tattempt    int32\n\tcompletion nexusrpc.CompleteOperationOptions\n\trequestID  string\n}\n\nfunc (c chasmInvocation) WrapError(result invocationResult, err error) error {\n\treturn result.error()\n}\n\n// logInternalError emits a log statement for internalMsg, tagged with both\n// internalErr and a reference-id. An opaque error containing the reference-id is\n// returned. Intended to be used to hide internal errors from end users.\nfunc logInternalError(logger log.Logger, internalMsg string, internalErr error) error {\n\treferenceID := uuid.NewString()\n\tlogger.Error(internalMsg, tag.Error(internalErr), tag.String(\"reference-id\", referenceID))\n\treturn fmt.Errorf(\"internal error, reference-id: %v\", referenceID)\n}\n\nfunc (c chasmInvocation) Invoke(ctx context.Context, ns *namespace.Namespace, e taskExecutor, task InvocationTask) invocationResult {\n\t// Get back the component ref and (optional) request ID from the callback token in the header.\n\theader := nexus.Header(c.nexus.GetHeader())\n\tif header == nil {\n\t\theader = nexus.Header{}\n\t}\n\n\tencodedToken := header.Get(commonnexus.CallbackTokenHeader)\n\tif encodedToken == \"\" {\n\t\treturn invocationResultFail{logInternalError(e.Logger, \"callback missing token\", nil)}\n\t}\n\n\tref, requestID, err := chasm.UnpackNexusCallbackToken(encodedToken)\n\tif err != nil {\n\t\treturn invocationResultFail{logInternalError(e.Logger, \"failed to decode CHASM callback token\", err)}\n\t}","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/components/callbacks/chasm_invocation.go#L23-L59","documentation":"Error \"internal error, reference-id: %v\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at components/callbacks/chasm_invocation.go:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}