Skip to content

[nodriver] When trying to use a proxy with the proxy_server argument, the page loads endlessly and eventually returns an ERR_TIMED_OUT error. #2185

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

Open
depis13 opened this issue Apr 29, 2025 · 1 comment

Comments

@depis13
Copy link

depis13 commented Apr 29, 2025


async def main():
    browser = await nodriver.start(
        headless=False,
    )
    tab = await browser.create_context(
        "https://curlconverter.com/",
        proxy_server=proxy.url,
    )
    input('test')



if __name__ == '__main__':
    nodriver.loop().run_until_complete(main())

In this code, proxy.url is a string of the following format: f"http://{self.username}:{self.password}@{self.host}:{self.port}". The proxy is definitely working.

Image

@ultrafunkamsterdam
Copy link
Owner

Using create_context only supports socks5 currently. To use http proxy pass it as browser_args when using start()

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