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

Broken if use remote chrome instance #30

Open
shinneider opened this issue Oct 13, 2022 · 1 comment
Open

Broken if use remote chrome instance #30

shinneider opened this issue Oct 13, 2022 · 1 comment

Comments

@shinneider
Copy link

The error:

in user_agent_override.py has this code

if '--headless' in page.browser.process.args:
        override['acceptLanguage'] = locale or 'en-US,en'

but remote instances no has process...

Step to reproduce:

  1. set up a chrome drive or docker (ex: https://hub.docker.com/r/browserless/chrome)

  2. Use this snipet

browser = await connect(browserWSEndpoint='ws://127.0.0.1:3000')

page = await browser.newPage()
await stealth(page)
@shinneider
Copy link
Author

shinneider commented Oct 13, 2022

In the master code, this bug is already fixed in this commit but no has release on pypi

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

1 participant