-
Notifications
You must be signed in to change notification settings - Fork 286
Closed
Labels
Description
Running the nightly build and connecting via puppeteer from another terminal:
Terminal 1
./lightpanda-aarch64-macos --host 127.0.0.1 --port 9222
> info(websocket): starting blocking worker to listen on 127.0.0.1:9222
> info(server): accepting new conn...
> info(server): client connected
> info(server): accepting new conn...
> error(handler): stream close error: error.BrokenPipeTerminal 2:
In [1]: from pyppeteer import launch, connect
In [2]: b = await connect(browserURL="http://127.0.0.1:9222")
In [3]: page = await b.newPage()
---------------------------------------------------------------------------
NetworkError Traceback (most recent call last)
Cell In[3], line 1
----> 1 page = await b.newPage()
File ~/miniconda3/lib/python3.11/site-packages/pyppeteer/browser.py:202, in Browser.newPage(self)
200 async def newPage(self) -> Page:
201 """Make new page on this browser and return its object."""
--> 202 return await self._defaultContext.newPage()
File ~/miniconda3/lib/python3.11/site-packages/pyppeteer/browser.py:358, in BrowserContext.newPage(self)
356 async def newPage(self) -> Page:
357 """Create a new page in the browser context."""
--> 358 return await self._browser._createPageInContext(self._id)
File ~/miniconda3/lib/python3.11/site-packages/pyppeteer/browser.py:209, in Browser._createPageInContext(self, contextId)
206 if contextId:
207 options['browserContextId'] = contextId
--> 209 targetId = (await self._connection.send(
210 'Target.createTarget', options)).get('targetId')
211 target = self._targets.get(targetId)
212 if target is None:
NetworkError: Protocol error Target.createTarget: Target closed.