selenium-wire icon indicating copy to clipboard operation
selenium-wire copied to clipboard

502 Bad Gateway

Open liunx7594 opened this issue 3 years ago • 6 comments

I encountered the following error in my test. I feel very strange. I have imported ca.crt

无标题

import time

import seleniumwire.webdriver
option = seleniumwire.webdriver.ChromeOptions()
driver = seleniumwire.webdriver.Chrome(executable_path="C:\\cmd\\chromedriver.exe")
driver.get("http://www.google.com/search?q=22222222222&oq=22222222222&aqs=chrome..69i57.1448j0j7&sourceid=chrome&ie=UTF-8")
time.sleep(100000)

The console did not output any results because it was asleep

liunx7594 avatar Feb 11 '22 01:02 liunx7594

same error

gojuukaze avatar Feb 14 '22 09:02 gojuukaze

same error

I switch proxy from socket5 to http ,and then it work fine

gojuukaze avatar Feb 14 '22 11:02 gojuukaze

try this:

        selenium_options = {
            'verify_ssl': False
        }

        self.browser = webdriver.Firefox(
            seleniumwire_options=selenium_options,
        )

converge avatar Feb 16 '22 19:02 converge

same error

I switch proxy from socket5 to http ,and then it work fine

You are right. Thanks.

liunx7594 avatar Feb 18 '22 09:02 liunx7594

Hi, im having the same error. Can you guys explain how you fixed it?

Andrewzekid avatar Apr 10 '22 02:04 Andrewzekid

Hi, im having the same error. Can you guys explain how you fixed it?

My issue was that the website certificate was expired, skipping TLS validation fixed the issue for me.

converge avatar Apr 11 '22 11:04 converge

Hi, im having the same error. Can you guys explain how you fixed it?

My issue was that the website certificate was expired, skipping TLS validation fixed the issue for me.

@converge I have the same issue, how did you skip TLS?

adirzoari avatar Oct 29 '22 20:10 adirzoari