{"record":{"id":"3e5850d49d6ea77e","repo":"temporalio/temporal","slug":"failed-to-parse-link-to-link-workflowevent-w","errorCode":null,"errorMessage":"failed to parse link to Link_WorkflowEvent: %w","messagePattern":"failed to parse link to Link_WorkflowEvent: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/nexus/link_converter.go","lineNumber":194,"sourceCode":"\t\t)\n\t}\n\n\tif link.URL.Scheme != urlSchemeTemporalKey {\n\t\treturn nil, fmt.Errorf(\n\t\t\t\"failed to parse link to Link_WorkflowEvent: invalid scheme: %s\",\n\t\t\tlink.URL.Scheme,\n\t\t)\n\t}\n\n\tmatches := urlPathRE.FindStringSubmatch(link.URL.EscapedPath())\n\tif len(matches) != 4 {\n\t\treturn nil, errors.New(\"failed to parse link to Link_WorkflowEvent: malformed URL path\")\n\t}\n\n\tvar err error\n\twe.Namespace, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathNamespaceKey)])\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t}\n\n\twe.WorkflowId, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathWorkflowIDKey)])\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t}\n\n\twe.RunId, err = url.PathUnescape(matches[urlPathRE.SubexpIndex(urlPathRunIDKey)])\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t}\n\n\tswitch refType := link.URL.Query().Get(linkWorkflowEventReferenceTypeKey); refType {\n\tcase eventReferenceType:\n\t\teventRef, err := convertURLQueryToLinkWorkflowEventEventReference(link.URL.Query())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to parse link to Link_WorkflowEvent: %w\", err)\n\t\t}","sourceCodeStart":176,"sourceCodeEnd":212,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/nexus/link_converter.go#L176-L212","documentation":"Error \"failed to parse link to Link_WorkflowEvent: %w\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/nexus/link_converter.go:194 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-08T15:18:49.778Z"}