temporalio/temporal · error
failed to parse link to Link_WorkflowEvent: %w
Error message
failed to parse link to Link_WorkflowEvent: %w
What it means
Error "failed to parse link to Link_WorkflowEvent: %w" thrown in temporalio/temporal.
Source
Thrown at common/nexus/link_converter.go:194
)
}
if link.URL.Scheme != urlSchemeTemporalKey {
return nil, fmt.Errorf(
"failed to parse link to Link_WorkflowEvent: invalid scheme: %s",
link.URL.Scheme,
)
}
matches := urlPathRE.FindStringSubmatch(link.URL.EscapedPath())
if len(matches) != 4 {
return nil, errors.New("failed to parse link to Link_WorkflowEvent: malformed URL path")
}
var err error
we.Namespace, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathNamespaceKey)])
if err != nil {
return nil, fmt.Errorf("failed to parse link to Link_WorkflowEvent: %w", err)
}
we.WorkflowId, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathWorkflowIDKey)])
if err != nil {
return nil, fmt.Errorf("failed to parse link to Link_WorkflowEvent: %w", err)
}
we.RunId, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathRunIDKey)])
if err != nil {
return nil, fmt.Errorf("failed to parse link to Link_WorkflowEvent: %w", err)
}
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)
}View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/nexus/link_converter.go:194 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/3e5850d49d6ea77e.
Report an issue: GitHub.