gosom / gosom/google-maps-scraper

Target closed: Target page, context or browser has been closed & could not convert to string

Open
#180 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.9k
Forks
924
Avg merge
5d 13h
Merged PRs (30d)
3

Description

Hello, when i start scrapper, i get this error

{"level":"error","component":"scrapemate","error":"could not convert to string","time":"2025-09-25T07:23:22.630667604Z","message":"error while processing job"} {"level":"info","component":"scrapemate","job":"Job{ID: ccefb4de-2f87-4b14-8d4e-89312edbe6f5, Method: GET, URL: https://www.google.com/maps/place/The+Coon+Law+Firm+PLLC/data=!4m7!3m6!1s0x8629d229bff13387:0xda08754a90695c3f!8m2!3d32.4628173!4d-90.1172247!16s%2Fg%2F1w_vnmx6!19sChIJhzPxvynSKYYRP1xpkEp1CNo?authuser=0&hl=en&rclk=1, UrlParams: map[hl:en]}","error":"playwright: target closed: Target page, context or browser has been closed","status":"failed","duration":1024.455571,"time":"2025-09-25T07:23:23.235718936Z","message":"job finished"} {"level":"error","component":"scrapemate","error":"playwright: target closed: Target page, context or browser has been closed","time":"2025-09-25T07:23:23.235731029Z","message":"error while processing job"} {"level":"info","component":"scrapemate","job":"Job{ID: c6a6783a-38f7-41db-a86e-9023cae41b72, Method: GET, URL: https://www.google.com/maps/place/Kilpatrick+%26+Philley+Attorneys+at+Law/data=!4m7!3m6!1s0x8629d215cf59b4d3:0x109af2dd829de80a!8m2!3d32.4288339!4d-90.1345444!16s%2Fg%2F1tfkwp79!19sChIJ07RZzxXSKYYRCuidgt3ymhA?authuser=0&hl=en&rclk=1, UrlParams: map[hl:en]}","error":"playwright: target closed: Target page, context or browser has been closed","status":"failed","duration":1025.154812,"time":"2025-09-25T07:23:23.236332104Z","message":"job finished"}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the scraper with the Google Maps URLs shown in the report and trace where the Playwright target is closed during job processing. Confirm the cause of the target closure and ensure those jobs complete without the reported conversion or target-closed errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, playwright
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.