当我第一次执行webdriver-manager update
时,我总是看到以下错误
PS H:\> webdriver-manager update
webdriver-manager: using global installed version 12.1.2
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
events.js:183
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onread (net.js:622:25)
但是,每当我再次运行它时,它总是会成功执行。我只在现在的公司经历过这种情况,我知道其他同事也会发生这种情况,所以我认为它一定是代理,但无法理解它后来如何成功通过。
任何关于如何从我这边更好地排除故障的解决方案或建议将不胜感激。
注意:我使用 powershell 来执行命令
最佳答案
我在以前版本的 webdriver-manager 中出现过同样的错误。唯一修复它的方法是升级到最新版本。我们也在代理后面,所以这可能是问题所在。 也许可以在 https://github.com/angular/webdriver-manager/issues 下重新发布此内容那么它会被开发人员采用吗?
关于selenium - webdriver-manager 更新命令第一次总是失败,但之后会通过,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56183080/