Node.js Selenium IPv6 Issue (SocketException Protocol family unavailable)

前端 未结 2 378
醉话见心
醉话见心 2020-12-17 17:22

This error only happens when I spawn the ios-driver jar as a Node.js child.

The error is java.net.SocketException: Protocol family unavailable

seleni

相关标签:
2条回答
  • 2020-12-17 18:04

    I managed to solve this by making the spawned child ignore stdin:

    var selenium = spawn('java', ['-jar', './ios-server-standalone-0.6.6-SNAPSHOT.jar', '-port', '4444'], {stdio: ['ignore', null, null]});

    I'm not sure why this workaround works.

    0 讨论(0)
  • 2020-12-17 18:15

    I don't have much idea about it, what so far I've found is that this can be binding issue with java. More details is on following link:(It is not the updated information, it may lead to answer)

    http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html

    If that is not the case, as this post suggests to change it to higher port should work. "Protocol family unavailable" error while using VisualVM

    0 讨论(0)
提交回复
热议问题