lightpanda-io / browser

The open-source browser made for headless usage
https://lightpanda.io
GNU Affero General Public License v3.0
158 stars 1 forks source link

cdp: error.MissingField on Target.createTarget with chromedp #283

Open krichprollsch opened 1 month ago

krichprollsch commented 1 month ago

Using a chromedp script to request lightpanda CDP, I get the following error:

 error(server): do error: error.MissingField

chromedp sent the message:

2024-10-24T16:20:04.571+0200    DEBUG   gateway/main.go:259     ws read: type 1, msg {"id":1,"method":"Target.createTarget","params":{"url":"about:blank"}}
krichprollsch commented 1 month ago

For comparison, where is the Target.createTarget message sent by puppeteer:

2024-10-24T16:20:10.782+0200    DEBUG   gateway/main.go:259     ws read: type 1, msg {"method":"Target.createTarget","params":{"url":"about:blank","browserContextId":"22648B09EDCCDD11109E2D4FEFBE4F89"},"id":6}