temporalio/temporal · error
failed to parse link to Link_WorkflowEvent: unknown referenc
Error message
failed to parse link to Link_WorkflowEvent: unknown reference type: %q
What it means
Error "failed to parse link to Link_WorkflowEvent: unknown reference type: %q" thrown in temporalio/temporal.
Source
Thrown at common/nexus/link_converter.go:225
switch refType := link.URL.Query().Get(linkWorkflowEventReferenceTypeKey); refType {
case eventReferenceType:
eventRef, err := convertURLQueryToLinkWorkflowEventEventReference(link.URL.Query())
if err != nil {
return nil, fmt.Errorf("failed to parse link to Link_WorkflowEvent: %w", err)
}
we.Reference = &commonpb.Link_WorkflowEvent_EventRef{
EventRef: eventRef,
}
case requestIDReferenceType:
requestIDRef, err := convertURLQueryToLinkWorkflowEventRequestIdReference(link.URL.Query())
if err != nil {
return nil, fmt.Errorf("failed to parse link to Link_WorkflowEvent: %w", err)
}
we.Reference = &commonpb.Link_WorkflowEvent_RequestIdRef{
RequestIdRef: requestIDRef,
}
default:
return nil, fmt.Errorf(
"failed to parse link to Link_WorkflowEvent: unknown reference type: %q",
refType,
)
}
return we, nil
}
func convertLinkWorkflowEventEventReferenceToURLQuery(eventRef *commonpb.Link_WorkflowEvent_EventReference) string {
values := url.Values{}
values.Set(linkWorkflowEventReferenceTypeKey, eventReferenceType)
if eventRef.GetEventId() > 0 {
values.Set(linkEventIDKey, strconv.FormatInt(eventRef.GetEventId(), 10))
}
values.Set(linkEventTypeKey, eventRef.GetEventType().String())
return values.Encode()
}
View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/nexus/link_converter.go:225 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/665699bd5aab48b3.
Report an issue: GitHub.