Comments (5)
What is the output of
npm config get proxy
npm config get https-proxy
from appium-chromedriver.
I have the same problem behind our corporate firewall. Regular npm install works fine, but downloading the chromedriver from chromedriver.storage.googleapis.com fails.
I have tried setting the proxy via
npm config set proxy http://proxy.company.lan:3128
npm config set https-proxy http://proxy.company.lan:3128
or with the install command
npm install appium-chromedriver https-proxy=http://proxy.company.lan:3128 --proxy=http://proxy.company.lan:3128
and in the ~/.npmrc, but nothing works, still get the same error:
info Chromedriver Install Installing Chromedriver version '2.21' for platform 'linux' and architecture '64'
info Chromedriver Install Opening temp file to write chromedriver_linux64 to...
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip...
RequestError: Error: getaddrinfo ENOTFOUND chromedriver.storage.googleapis.com chromedriver.storage.googleapis.com:80
at new RequestError (/home/espenaf/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback as _callback
at self.callback (/home/espenaf/svn/node_modules/request/request.js:200:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (/home/espenaf/node_modules/request/request.js:831:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketErrorListener (_http_client.js:258:9)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at connectErrorNT (net.js:998:8)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" "appium-chromedriver"
npm ERR! node v4.2.6
npm ERR! npm v3.8.7
from appium-chromedriver.
I'm facing the same issue. Any ideas? npm install -g appium under corp proxy fails chromedriver downloading.
from appium-chromedriver.
I have looked into the code and found that the request-premise library the project used will use proxy only if there is an explicit declared in the code or there is a environment system variable in the os. I have added these 2 env vars as following and it resolves the issue.
http_proxy
https_proxy
Moreover, I've noticed that the library doesn't take proxy and https-proxy set in npm config into account.
from appium-chromedriver.
Issue currently tracked under main appium repo.
appium/appium#7296
from appium-chromedriver.
Related Issues (20)
- Action required: Greenkeeper could not be activated 🚨
- Original error: unknown error: unable to discover open pages HOT 1
- Appium session times out after a long time waiting to interact with the Chrome browser HOT 2
- Chromedriver needs updating HOT 1
- Unable to use chromedriver_autodownload HOT 7
- Need update on npm HOT 5
- Test Script not able to locate element on Real Device post switching to webview of a hybrid app. HOT 9
- Cannot install - Socket Hang Up [OSX 10.11.4] HOT 1
- Expose all the arguments of chromedriver. HOT 2
- startSession() should have restartAdb logic as present in previous versions of appium HOT 1
- Trying to use a chromedriver binary at the path /Users/automation/.appium/node_modules/appium-device-farm/chromedriver/chromedriver_mac64_v124.0.6367.207, but it doesn't exist! HOT 1
- Issue in installing appium on mac through terminal window nom install appium command HOT 8
- Node install failure on version 2.9.2 HOT 4
- Unit tests are failing on gulp.once HOT 5
- Error with chromedriver when installing appium HOT 7
- ChromeDriver cannot switch context to webview in another app HOT 8
- Add Support for Installing Chromedriver 2.23+ on OS X HOT 5
- The Added Support for Installing Chromedriver 2.23+ on OS X HOT 8
- Error with chromedriver when installing appium1.6.0 HOT 12
- Action required: Greenkeeper could not be activated 🚨
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-chromedriver.