Appium + Selenium grid:Appium 成功注册到网格,但不进行状态调用



直到几天前,我的Appium+硒网格一直运行良好
现在,当我启动我的appium节点时,它将注册到本地网格:

"Appium successfully registered with the the grid on http://localhost:4444"

然而,它不再像以前那样发送get状态调用,网格会将其标记为down并在一段时间后或尝试使用该节点时将其作为过时会话进行清理。

java -jar /Users/pa23053/git/mobile-tools/selenium-server-standalone-3.141.59.jar -role hub
08:59:44.265 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
08:59:44.354 INFO [GridLauncherV3.lambda$buildLaunchers$5] - Launching Selenium Grid hub on port 4444
2022-08-26 08:59:44.846:INFO::main: Logging initialized @942ms to org.seleniumhq.jetty9.util.log.StdErrLog
08:59:44.997 INFO [Hub.start] - Selenium Grid hub is up and running
08:59:44.998 INFO [Hub.start] - Nodes should register to http://172.20.101.225:4444/grid/register/
08:59:44.998 INFO [Hub.start] - Clients should connect to http://172.20.101.225:4444/wd/hub
08:59:58.410 INFO [DefaultGridRegistry.add] - Registered a node http://0.0.0.0:49915
09:02:39.295 INFO [DefaultRemoteProxy.onEvent] - Marking the node http://0.0.0.0:49915 as down: cannot reach the node for 2 tries
09:04:00.616 INFO [DefaultRemoteProxy.onEvent] - Unregistering the node http://0.0.0.0:49915 because it's been down for 81321 milliseconds

注册后,appium应定期发送这些电话:

[HTTP] --> GET /wd/hub/status
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.43"}} 
[HTTP] <-- GET /wd/hub/status 200
[HTTP] --> GET /wd/hub/status
......

相反,现在它只是注册,然后什么也不做。到目前为止,修复的尝试是:
卸载+重新安装appium
升级和降级appium
切换硒服务器版本
正在使用的模拟器的功能应该很好,因为它们已经有一段时间没有变化了,其他人使用它们没有问题。

任何我应该检查或尝试的建议都将不胜感激。

我自己解决了这个问题。有一个奇怪的问题,我的笔记本电脑将我的家庭网络子网掩码设置为255.255.252.0。这应该是255.255.255.0。这导致appium或selenium发送/接收请求的能力出现问题。

这就解释了为什么当我在办公室尝试时,一切都会很好;而在移动热点上。

最新更新