Ошибка обновления WebDriver - PullRequest
0 голосов
/ 11 февраля 2019

Я пытаюсь установить Protractor, и в настоящее время я застрял при обновлении веб-драйвера.

Я использую Node 8.9.4, а версия npm - 5.6.0.

Когда я запускаюследующая команда

webdriver-manager update --ignore_ssl

Я получаю следующее исключение.

[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
(node:19392) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'ListBucketResult' of undefined
(node:19392) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:36] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[18:10:36] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[18:10:36] I/http_utils - ignoring SSL certificate
[18:10:37] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/geckodriver-v0.24.0.zip https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-win32.zip
[18:10:37] I/update - geckodriver: unzipping geckodriver-v0.24.0.zip

...\node_modules\adm-zip\zipFile.js:66
                        throw Utils.Errors.INVALID_FORMAT;
                        ^
Invalid or unsupported zip format. No END header found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rdx-app@0.0.0 webdriver: `webdriver-manager update --versions.chrome 2.38 --ignore_ssl`

1 Ответ

0 голосов
/ 12 февраля 2019

После некоторого исследования я выяснил, в чем может быть проблема.В adm-zip уже поднят билет для этой ошибки: https://github.com/cthackers/adm-zip/issues/99

Там у вас есть обсуждение вашей проблемы: https://github.com/angular/protractor/issues/1005

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...