Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browserless.liveURL doesn't work #4353

Open
macrochel opened this issue Oct 15, 2024 · 1 comment
Open

Browserless.liveURL doesn't work #4353

macrochel opened this issue Oct 15, 2024 · 1 comment

Comments

@macrochel
Copy link

Browserless.liveURL doesn't work

Docker compose setup of ghcr.io/browserless/chromium on Linux Ubuntu

I'm using puppeteer

const puppeteer = require('puppeteer-core');

const login = async () => {
  const browser = await puppeteer.connect({browserWSEndpoint: 'ws://xxxxxxxxx:3001/?token=xxxxxxxx&--user-data-dir=~/browserless-cache-123',});
  const page = await browser.newPage();
  const cdp = await page.createCDPSession();
  await page.goto('https://www.gmail.com/');
  await page.screenshot({ path: "goodreads.png", fullPage: true });

  const { liveURL } = await cdp.send('Browserless.liveURL');

  console.log(`Shareable Public URL:`, liveURL);

  await new Promise((r) => cdp.on('Browserless.liveComplete', r));

  browser.close();
};
login().catch((e) => console.log(e));

It returns
ProtocolError: Protocol error (Browserless.liveURL): 'Browserless.liveURL' wasn't found

@tusharmctrl
Copy link

I'm facing the same issue, were you able to find a solution for this @macrochel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants