{"record":{"id":"0bb6bdc3678fdaa5","repo":"vxcontrol/pentagi","slug":"failed-to-parse-url-w","errorCode":null,"errorMessage":"failed to parse url: %w","messagePattern":"failed to parse url: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/pkg/tools/browser.go","lineNumber":304,"sourceCode":"\t}()\n\n\twg.Wait()\n\n\tif errLinks != nil {\n\t\treturn \"\", \"\", errLinks\n\t}\n\tif errScreenshot != nil {\n\t\tlogger.WithError(errScreenshot).Warn(\"failed to capture screenshot, continuing without it\")\n\t\tscreenshotName = \"\"\n\t}\n\n\treturn links, screenshotName, nil\n}\n\nfunc (b *browser) resolveUrl(targetURL string) (*url.URL, error) {\n\tu, err := url.Parse(targetURL)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse url: %w\", err)\n\t}\n\n\thost, _, err := net.SplitHostPort(u.Host)\n\tif err != nil {\n\t\thost = u.Host\n\t}\n\n\tisPrivate := false\n\n\thostIP := net.ParseIP(host)\n\tif hostIP != nil {\n\t\tisPrivate = hostIP.IsPrivate() || hostIP.IsLoopback()\n\t} else {\n\t\tip, err := net.ResolveIPAddr(\"ip\", host)\n\t\tif err == nil {\n\t\t\tisPrivate = ip.IP.IsPrivate() || ip.IP.IsLoopback()\n\t\t} else {\n\t\t\tlowerHost := strings.ToLower(host)","sourceCodeStart":286,"sourceCodeEnd":322,"githubUrl":"https://github.com/vxcontrol/pentagi/blob/ea665308baaff015b226f308438a68d929d0f29b/backend/pkg/tools/browser.go#L286-L322","documentation":"Error \"failed to parse url: %w\" thrown in vxcontrol/pentagi.","triggerScenarios":"Thrown at backend/pkg/tools/browser.go:304 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":"ea665308baaff015b226f308438a68d929d0f29b","analyzedAt":"2026-09-01T14:16:31.421Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}