Forums

unknown error: net::ERR_TUNNEL_CONNECTION_FAILED

File "/home/teamip/mysite/zeroda_updation.py", line 50, in __init__ self.driver.get("https://kite.zerodha.com/") File "/home/teamip/mysite/env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 442, in get self.execute(Command.GET, {'url': url}) File "/home/teamip/mysite/env/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute self.error_handler.check_response(response) File "/home/teamip/mysite/env/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_TUNNEL_CONNECTION_FAILED

this is my bash cosole error that I'm getting whenever i try to run selenium code. how can i resolve this?

That looks like your proxy settings may be incorrect. What do you get when you run this in that console?

echo $http_proxy

http://proxy.server:3128

do i have to upgrade my pythonanywhere account in order to run selenium code? And i have checked this example code from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--headless") chrome_options.add_argument("--disable-gpu") browser = webdriver.Chrome(options=chrome_options) try: browser.get("https://www.google.com") print("Page title was '{}'".format(browser.title)) finally: browser.quit() its running fine , I'm getting output for this code

Example code from selenium help page should work on the free account, as www.google.com is whitelisted. See https://www.pythonanywhere.com/whitelist/

can you whitelist this site it have all the proper documentation required

http://kite.zerodha.com

We can't whitelist that as it's not open. There is login required.