ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

前端 未结 6 796
时光说笑
时光说笑 2020-11-28 13:29

For some reason I get the following error only when I open up a nested webdriver instance. No idea what is happening here.

I a

6条回答
  •  执笔经年
    2020-11-28 13:55

    As documentation says:

    Software caused connection abort. An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error.

    Possible reasons:

    1. Timeout or other network-level error.
    2. Network connection died
    3. Firewall closed the connection because it was open too long
    4. Connection was closed before process has been finished
    5. AntiVirus blocks the connection

    and etc.

    Also try to downgrade geckodriver 0.21.0 to geckodriver 0.20.1. You can download it here. It seems to be a problem with geckodriver 0.21.0 https://stackoverflow.com/a/51236719/8625512

    PS:

    options.add_argument('-headless')
    

    should be:

    options.add_argument('--headless')
    

提交回复
热议问题