temporalio/temporal · error
internal error, reference-id: %v
Error message
internal error, reference-id: %v
What it means
Error "internal error, reference-id: %v" thrown in temporalio/temporal.
Source
Thrown at components/callbacks/chasm_invocation.go:41
type chasmInvocation struct {
nexus *persistencespb.Callback_Nexus
attempt int32
completion nexusrpc.CompleteOperationOptions
requestID string
}
func (c chasmInvocation) WrapError(result invocationResult, err error) error {
return result.error()
}
// logInternalError emits a log statement for internalMsg, tagged with both
// internalErr and a reference-id. An opaque error containing the reference-id is
// returned. Intended to be used to hide internal errors from end users.
func logInternalError(logger log.Logger, internalMsg string, internalErr error) error {
referenceID := uuid.NewString()
logger.Error(internalMsg, tag.Error(internalErr), tag.String("reference-id", referenceID))
return fmt.Errorf("internal error, reference-id: %v", referenceID)
}
func (c chasmInvocation) Invoke(ctx context.Context, ns *namespace.Namespace, e taskExecutor, task InvocationTask) invocationResult {
// Get back the component ref and (optional) request ID from the callback token in the header.
header := nexus.Header(c.nexus.GetHeader())
if header == nil {
header = nexus.Header{}
}
encodedToken := header.Get(commonnexus.CallbackTokenHeader)
if encodedToken == "" {
return invocationResultFail{logInternalError(e.Logger, "callback missing token", nil)}
}
ref, requestID, err := chasm.UnpackNexusCallbackToken(encodedToken)
if err != nil {
return invocationResultFail{logInternalError(e.Logger, "failed to decode CHASM callback token", err)}
}View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at components/callbacks/chasm_invocation.go:41 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/7d139b0eb46c00ce.
Report an issue: GitHub.