Skip to content

[🐛 Bug]: RetryRequest -> unlimited retries? #10437

@ogolovanov

Description

@ogolovanov

What happened?

Hi.

I configured RemoteWebDriver with:

  1. socks5 proxy server
  2. pageLoadTimeout = 180s.

Everything is ok, but one of my driver->get() request "stalled" due to "problems" with proxy server.
And it seems selenium tries to execute that request indefinitely. ( RetryRequest class )
This is not what i wanted after setting pageLoadTimeout to 180s.
I expected to get TimeoutException from webdriver after 180s.

Question: how to avoid that unexpected behaviour?

Logs attached.

How can we reproduce the issue?

Not possible to reproduce due to problems related to specific proxy server.

Relevant log output

2022-03-11 11:24:07,360	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #1. Retrying.
2022-03-11 11:27:09,366	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #2. Retrying.
2022-03-11 11:30:11,367	org.openqa.selenium.remote.http.RetryRequest	Read timeout #3. Retrying.
2022-03-11 11:33:15,368	org.openqa.selenium.remote.http.RetryRequest	Read timeout #4. Retrying.
2022-03-11 11:36:19,369	org.openqa.selenium.remote.http.RetryRequest	Read timeout #5. Retrying.
2022-03-11 11:39:20,371	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #1. Retrying.
2022-03-11 11:42:21,372	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #1. Retrying.
2022-03-11 11:45:23,372	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #2. Retrying.
2022-03-11 11:48:25,373	org.openqa.selenium.remote.http.RetryRequest	Read timeout #3. Retrying.
2022-03-11 11:51:29,374	org.openqa.selenium.remote.http.RetryRequest	Read timeout #4. Retrying.
2022-03-11 11:54:33,374	org.openqa.selenium.remote.http.RetryRequest	Read timeout #5. Retrying.
2022-03-11 11:57:35,375	org.openqa.selenium.remote.http.RetryRequest	Failure due to server error #2. Retrying.

Operating System

Ubuntu

Selenium version

4.1.2

What are the browser(s) and version(s) where you see this issue?

Chrome 98

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 98.0.4758.102

Are you using Selenium Grid?

4.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-gridEverything grid and server relatedC-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions