Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebDriverError - Connection reset by peer #5611

Closed
mjaeggi opened this issue Mar 14, 2018 · 7 comments
Closed

WebDriverError - Connection reset by peer #5611

mjaeggi opened this issue Mar 14, 2018 · 7 comments

Comments

@mjaeggi
Copy link

mjaeggi commented Mar 14, 2018

OS:
MacOS 10.12.6 Sierra
Selenium Version:
3.11
Browser:
Chrome
Browser Version:
65.0.3325.162

Actual Behavior -

I'm getting a randomly WebDriverError with the next stack trace

WebDriverError: java.net.SocketException: Connection reset by peer (connect failed)
           at Object.checkLegacyResponse (/Users/.../node_modules/selenium-webdriver/lib/error.js:546:15)
           at parseHttpResponse (/Users/.../node_modules/selenium-webdriver/lib/http.js:509:13)
           at doSend.then.response (/Users/.../node_modules/selenium-webdriver/lib/http.js:441:30)
           at <anonymous>
           at process._tickCallback (internal/process/next_tick.js:188:7)Error
           at ElementArrayFinder.applyAction_ (/Users/.../node_modules/protractor/built/element.js:459:27)
           at ElementArrayFinder.(anonymous function).args [as getAttribute] (/Users/.../node_modules/protractor/built/element.js:91:29)
           at ElementFinder.(anonymous function).args [as getAttribute] (/Users/.../webroot/node_modules/protractor/built/element.js:831:22)
           at HomePage.getFontNameFromCardCarousel (/Users/.../tests/qeguitests/e2e/pages/HomePage.js:91:148)
           at World.When (/Users/.../tests/qeguitests/e2e/features/steps_definitions/homepage_steps.js:99:33)
   - And I move to the "right" the carousel # tests/qeguitests/e2e/features/steps_definitions/homepage_steps.js:54

I'm getting this error randomy in different actions. It never happend in the same point twice

@inzerion
Copy link

Have same problem with macOS 10.13.2 (17C205) and Version 64.0.3282.186 (Official Build) (64-bit)
Selenium version 3.11.0

@denys-ua
Copy link

denys-ua commented Apr 6, 2018

The same problem:
E/launcher - java.net.SocketException: Connection reset by peer (connect failed)
E/launcher - WebDriverError: java.net.SocketException: Connection reset by peer (connect failed)

macOS 10.13.3 (17D102)
chromedriver_2.37
selenium-server-standalone-3.11.0.jar
Google Chrome Version 65.0.3325.181 (Official Build) (64-bit)

@basickarl
Copy link

basickarl commented May 28, 2018

Following Selenium web server version: 3.8.1
Following Selenium driver versions are being used:
chrome: 2.37
firefox: 0.20.0

package.json:

    "selenium-standalone": "^6.14.1",
    "webdriverio": "^4.12.0"

Error (this error is random, it doesn't always show up):

     Error: java.net.SocketException: Connection reset by peer (connect failed)
      at new RuntimeError (node_modules/webdriverio/build/lib/utils/ErrorHandler.js:144:12)
      at Request._callback (node_modules/webdriverio/build/lib/utils/RequestHandler.js:316:39)
      at Request.self.callback (node_modules/webdriverio/node_modules/request/request.js:186:22)
      at Request.<anonymous> (node_modules/webdriverio/node_modules/request/request.js:1163:10)
      at IncomingMessage.<anonymous> (node_modules/webdriverio/node_modules/request/request.js:1085:12)
      at endReadableNT (_stream_readable.js:1064:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickDomainCallback (internal/process/next_tick.js:218:9)

Related to perhaps: webdriverio/webdriverio#2262

@charlieargue
Copy link

Seeing the same error, posted about it here:
angular/protractor#4733 (comment)

Thanks for any help!

@janjad
Copy link

janjad commented Jun 11, 2018

I have exactly the same problem on Mac 10.12.6 Sierra
Java version 10.0.1
Selenium version 3.12.0
Chromedriver version 2.40
Chrome 67.0

But I've found a workaround at least as it seems...
In Protractor I've forced webdriver-manager to use selenium server version 2.53.1 and it seems that tests no longer fail on this error...

Would be great if this problem could be fixed for 3.x version too...

@abdullahawara
Copy link

abdullahawara commented Jul 14, 2018

Work around for testing on Chrome:

Don't use selenium-standalone, but use http://webdriver.io/guide/services/chromedriver.html instead.

It worked for me on Mac.

    "devDependencies": {
        "chromedriver": "^2.40.0",
        "wdio-chromedriver-service": "^0.1.3",
        "wdio-mocha-framework": "0.5.12",
        "webdriverio": "4.13.1"
    }

@diemol
Copy link
Member

diemol commented Sep 19, 2020

Looks like this issue is mixing bits from different parts and projects, and it went stale.

It is not clear what the issue is, and after over two years it either got solved or is not relevant anymore. We are doing an issue clean up, so I will close this issue.
However, if the issue still exists, feel free to open a new one with all the information required in the template.

@diemol diemol closed this as completed Sep 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants