From 9c462b80a90fc27bab3003385e4bab983585cd8f Mon Sep 17 00:00:00 2001 From: Dogan Can Bakir <65292895+dogancanbakir@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:31:45 +0300 Subject: [PATCH] err check (#773) --- pkg/engine/hybrid/crawl.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/engine/hybrid/crawl.go b/pkg/engine/hybrid/crawl.go index fc52ba43..643567a7 100644 --- a/pkg/engine/hybrid/crawl.go +++ b/pkg/engine/hybrid/crawl.go @@ -47,7 +47,10 @@ func (c *Crawler) navigateRequest(s *common.CrawlSession, request *navigation.Re xhrRequests := []navigation.Request{} go pageRouter.Start(func(e *proto.FetchRequestPaused) error { - URL, _ := urlutil.Parse(e.Request.URL) + URL, err := urlutil.Parse(e.Request.URL) + if err != nil { + return errorutil.NewWithTag("hybrid", "could not parse URL").Wrap(err) + } body, _ := FetchGetResponseBody(page, e) headers := make(map[string][]string) for _, h := range e.ResponseHeaders {