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

ERR_NAME_NOT_RESOLVED only in headless mode #466

Open
akaneshiro7 opened this issue Mar 5, 2024 · 0 comments
Open

ERR_NAME_NOT_RESOLVED only in headless mode #466

akaneshiro7 opened this issue Mar 5, 2024 · 0 comments

Comments

@akaneshiro7
Copy link

Hello,

I am trying to use pyppeteer and run into an issue when running the script in headless mode. When I run

browser = await launch(headless=False)
page = await self.browser.newPage()
await page.goto('https://google.com')

I do not get an error.
However, when I set headless to True, I get the following error:

net::ERR_NAME_NOT_RESOLVED at https://google.com

@akaneshiro7 akaneshiro7 changed the title ERR_NAME_NOT_RESOLVED in headless mode ERR_NAME_NOT_RESOLVED only in headless mode Mar 5, 2024
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