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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰 Bug]: Intercepting network response produces exception #10856
Comments
@dokisha, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
This can be reproduced with: driver = Selenium::WebDriver.for :chrome
ids = []
driver.intercept do |request, &continue|
continue.call(request) { ids << request.id }
end
10.times { driver.get "https://youtube.com" } @p0deje I want to say this is a Chrome bug somehow? It looks like it happens when the |
This happens because the request is aborted (canceled) by the browser on new navigation and after that, we try to continue the already canceled request/response. I'm trying to implement a logic that will track the canceled requests and prevent continuing them. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Intercepting network response crashes the browser.
Method
attach_socket_listener
in websocket_connection.rb hasThread.current.abort_on_exception = true
which exits the process and crashes the browser.Producing many requests/responses or repeated requests produce the exception.
How can we reproduce the issue?
Relevant log output
Operating System
Ubuntu
Selenium version
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
What are the browser(s) and version(s) where you see this issue?
Chrome 100.0.4896.127
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 100.0.4896.60
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: