-
Notifications
You must be signed in to change notification settings - Fork 28
java.io.IOException: Error writing to server #39
Comments
Anyone encountered such error? |
We are also having this issue. Did you ever find the solution? |
me too: java.io.IOException: Error writing to server |
Does anyone know why this might not fail on SauceLabs? I run the same tests on sauce and on Mac and they all pass. When I run it locally on Mac, it fails. |
I put together a sample repo: https://github.com/phil-lgr/wdio-issue-repro |
@phil-lgr For the time being, I downgraded wdio to use selenium 3.4. This isn't ideal as it makes me have to use older versions of the browser. Seems like you have a good understanding of what's going on. Are you working on a fix? |
I don't... I wish selenium was written in JavaScript 🤣 |
@silne30 WebdriverIO doesn't run any Selenium. What you referring to is the Selenium standalone server which only starts the driver. You need to set up the proper configs to download the correct driver version. @phil-lgr same here .. the standalone server is written in Java because when Selenium started Node.js wasn't at the level it is now. Also it would not bring any advantage to have it be written in JavaScript. |
Yes I mean the standalone server.. like when you have error coming from selenium or the drivers, e.g.
It's hard to know what's going on.. |
i am also facing the same issue,
@ibmalan found any solution? |
@phil-lgr any solution found?? |
Hi, yes, make sure you put
in your |
I had problems on MacOS with higher versions |
@phil-lgr
|
@kathar1223 Selenium Args go in your configuration file. exports.config = {
seleniumInstallArgs: { version: '3.4.0' },
seleniumArgs: { version: '3.4.0' },
specs: [
'./test/spec/**/*spec.js'
],
...
} |
@kathar1223 This will, however, affect the versions of the browsers you can test against as newer versions of the browser will return an error about being invalid (because they weren't out yet when that Selenium 3.4.0 was out). Hope that doesn't affect your use case. |
I remember the issue had been solved by using a higher webdriverio version. please try it! |
I too have this same problem
@ibmalan , I am using the latest version of webdriverio, and still get the same error. "selenium-standalone": "^6.14.0", |
@tomchin23 Maybe you can downgrade webdriverio to 4.9.9 and try again? |
@tomchin23 Did this solve your problem? Having the same issue@ Did @ibmalan's suggestion work? |
This will be most likely fixed in v5 |
@silne30 This was a while ago, but no I did not end up keeping a downgrade because something else started not working. As you mentioned above, working with older browser versions is not ideal. |
What is the fix to the error "java.io.IOException: Error writing to server". Is it related to the error "java.net.SocketException: Connection reset by peer (connect failed)". How to solve the issue " java.net.SocketException: Connection reset by peer (connect failed)". I am seeing this error for few of my test cases. Other test cases run fine. Here is my configuration: |
when running script, it failed and report error:
[chrome #0-0] java.io.IOException: Error writing to server
[chrome #0-0] Error: An unknown server-side error occurred while processing the command.
[chrome #0-0] at Object.module.exports [as checkContainsText] (test/utils/check/checkContainsText.js:19:16)
[chrome #0-0] at World. (test/steps/dns.js:50:15)
[chrome #0-0] at Promise.F (node_modules/core-js/library/modules/_export.js:35:28)
[chrome #0-0] at elementIdText("0.7884895451383356-31") - getText.js:35:50
"dependencies": {
"babel-preset-es2015": "~6.24.0",
"babel-register": "~6.24.0",
"chai": "~3.5.0",
"cucumber": "^1.3.1",
"gulp": "^3.9.1",
"minimist": "^1.2.0",
"eslint-plugin-webdriverio": "^1.0.1",
"wdio-cucumber-framework": "~0.3.1",
"wdio-cucumber-reporter": "0.0.2",
"wdio-firefox-profile-service": "0.0.3",
"wdio-junit-reporter": "^0.3.0",
"wdio-sauce-service": "^0.4.0",
"wdio-selenium-standalone-service": "0.0.9",
"wdio-spec-reporter": "~0.1.0",
"webdriverio": "~4.8.0"
},
"devDependencies": {
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.0",
"babel-jest": "^20.0.3",
"babel-loader": "^6.2.7",
"babel-plugin-istanbul": "^4.1.1",
"babel-preset-react": "^6.16.0",
"babel-polyfill": "~6.23.0",
"eslint": "~3.19.0",
"eslint-config-airbnb-base": "~11.1.0",
"eslint-plugin-import": "~2.2.0"
}
wdid.con.js
services: ['selenium-standalone'],
The text was updated successfully, but these errors were encountered: