Closed sharewithamar closed 7 years ago
@sharewithamar Can you try with --verbose
flag please?
@dwieeb Here is the result with --verbose flag. Attached screenshot as well.
D:>ionic start helloWorld blank --type ionic-angular --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
"3.1.2"
[DEBUG] Latest version of ionic@latest is .
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@ latest.
"1.1.2"
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is .
[DEBUG] globalDeps=
Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/ master.ta
r.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
? Downloading - failed!
Error: getaddrinfo ENOTFOUND github.comgithub.com:443
[DEBUG] Error: getaddrinfo ENOTFOUND github.comgithub.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:26)
On 19 May 2017 1:20 p.m., "Dan Imhoff" notifications@github.com wrote:
@sharewithamar https://github.com/sharewithamar Can you try with --verbose flag please?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/driftyco/ionic-cli/issues/2317#issuecomment-302634504, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_Lf0DvcPhDx3DPZeq9W6S_OjiXl3cVks5r7UmrgaJpZM4NgHa_ .
github.comgithub.com:443
???
yes, Error: getaddrinfo ENOTFOUND github.com github.com:443
On Sat, May 20, 2017 at 12:24 AM, Dan Imhoff notifications@github.com wrote:
github.comgithub.com:443 ???
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/driftyco/ionic-cli/issues/2317#issuecomment-302783469, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_LfzTEA3bi3NNpstovSx2W5npoyZQZks5r7eVZgaJpZM4NgHa_ .
-- Regards, Amar
I assume it has something to do with your server configuration.
But I don't face any issues while using Angular CLI or npm behind proxy regularly to install libraries. Even Ionic V2 was working fine behind proxy.
After upgrading to 3+ i'm getting this error.
Do I need to ask server team to enable some config or something to be done in my client machine? Kindly let me know.
On 20 May 2017 12:47 a.m., "Dan Imhoff" notifications@github.com wrote:
I assume it has something to do with your server configuration.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/driftyco/ionic-cli/issues/2317#issuecomment-302788757, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_LfxaCeIDzCkJsLr-DN0frsdIlESkIks5r7eq_gaJpZM4NgHa_ .
Hello my friend, I got similar issue as you, working fine on ionic2, npm, but failed once got upgrade to ionic3.
My error is "self signed certificate in certificate chain".
I am wondering, why it was working on V2, but not for now..
Also behind proxy...
With ionic@2.2.3 is working, but not with ionic@3.1.2! Any workaround?
$ ionic info --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
"3.1.2"
[DEBUG] Latest version of ionic@latest is .
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
"1.1.2"
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is .
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.1.2
@ionic/cli-utils : 1.1.2
Ionic CLI : 3.1.2
System:
Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
$ ionic start myNewProject blank --type=ionic1 --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
"3.1.2"
[DEBUG] Latest version of ionic@latest is .
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
"1.1.2"
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is .
[DEBUG] globalDeps=
Fetching app base (https://github.com/driftyco/ionic-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: connect ECONNREFUSED 192.30.253.120:443
[DEBUG] Error: connect ECONNREFUSED 192.30.253.120:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
Im facing the exact same problem. I also havent faced any issue creating angular cli apps. I think ionic start is skipping the proxy set for github; which is causing this problem.
if this is a self signed cert issue then you can temporarily set an environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 then clear the variable when you are done
Hi guys I'm having the same problem, but am working in ElementaryOS (Ubuntu 14.04 based version) You can see the commands output
mypc:~$ ionic start pruebaApp --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
? What starter would you like to use: blank
[DEBUG] globalDeps=
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: connect ETIMEDOUT 192.30.253.112:443
[DEBUG] Error: connect ETIMEDOUT 192.30.253.112:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
And here the ionic info
mypc:~$ ionic info --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v6.10.3
OS : Linux 4.4
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Of course, I've set apt proxy, configured proxy in bash, etc. Tried also with PROXY=..... ionic start pruebaApp Tried with sudo
Proxy works fine everywhere. I've updated npm and ionic from terminal without errors before getting this problem
Thanks
Hi all, I'm facing the same issue (also behind a proxy...)
$ ionic info
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.1.2
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v6.9.4
OS : Windows 8.1
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
@datencia try feedback from @76foxtrot "if this is a self signed cert issue then you can temporarily set an environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 then clear the variable when you are done".
I am now ok for starting project, but failed to build, with blocking https
Thx @derekstwong, but that solution is not working for me :(
I will keep trying...
@datencia , not sure what error given from your cli.
are you trying to start a project with "timeout" error or "self signed cert" error? Just try updating to the latest Node.js and npm at this moment first
ahaha my fault. It's a timeout error, just the same error as @kabeza
> ionic start my-cool-app blank --skip-deps --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: connect ETIMEDOUT 192.30.253.112:443
[DEBUG] Error: connect ETIMEDOUT 192.30.253.112:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
I've also update to the latest Node.js (6.10.3), npm (4.6.1) and Ionic (3.2.0) but I get the same error.
Thanks
I'm having the same issues. the cli-plugin-proxy is installed and all the environment variable were set and I'm getting the following error. Regular GitHub, npm, and git proxies are all setup and work.
$ ionic start app tabs --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] globalDeps=
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: getaddrinfo ENOTFOUND github.com github.com:443
[DEBUG] Error: getaddrinfo ENOTFOUND github.com github.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
Here's my ionic info:
$ ionic info --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v6.9.1
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
``
Can anyone confirm the request is actually making it to their proxy server?
I am using Charles Proxy (https://www.charlesproxy.com/) to test this locally and every request during start
is making it through the proxy.
hi, i tried to start
via charles proxy like below image.
but... there are no any request from ionic-cli.
its my environment.
D:\study\git>ionic info --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Getting plugin info for ionic
[DEBUG] Getting plugin info for @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
[DEBUG] Latest version of ionic@latest is 3.2.0.
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is 1.2.0.
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v7.8.0
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
@datencia while searching for my issue, I remember that I found once method for TIMEOUT issue.
Lemme try finding for you, hope it helps, but wait.....
Perhaps you can try setting the "registry" method, and find something related to npm timeout...
@dwieeb This issue is only affecting people on Windows in my team.
Sorry for the ignorance. Should we setup the proxy address in some config.json or request.js (I remember having seen something like that somewhere)
PS: This is the output with verbose and skip-deps (utils.js shows as the error origin)
mypc:~$ ionic start pruebaApp blank --skip-deps --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Getting plugin info for ionic
[DEBUG] Getting plugin info for @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
[DEBUG] Latest version of ionic@latest is 3.2.0.
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is 1.2.0.
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: connect ETIMEDOUT 192.30.253.112:443
[DEBUG] Error: connect ETIMEDOUT 192.30.253.112:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
@JPinlac Awesome. I'll check on Windows as soon as I can.
@kabeza We look at environment variables for the proxy address: https://github.com/driftyco/ionic-cli#using-a-proxy
Has anyone found the solution / workaround?
I followed the guide pointed by @dwieeb but no luck
mypc:~$ export http_proxy=http://proxy:port
mypc:~$ export HTTP_PROXY=http://proxy:port
mypc:~$ export PROXY=http://proxy:port
mypc:~$ export IONIC_HTTP_PROXY=http://proxy:port
mypc:~$ HTTP_PROXY=http://proxy:port ionic --verbose start pruebaApp/
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Getting plugin info for ionic
[DEBUG] Getting plugin info for @ionic/cli-plugin-proxy
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
[DEBUG] Latest version of ionic@latest is 3.2.0.
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is 1.2.0.
? What starter would you like to use: blank
[DEBUG] globalDeps=
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
[DEBUG] !!! ERROR ENCOUNTERED !!!
✖ Downloading - failed!
Error: connect ETIMEDOUT 192.30.253.112:443
[DEBUG] Error: connect ETIMEDOUT 192.30.253.112:443
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
None of the following variables works. IONIC_HTTP_PROXY http_proxy HTTP_PROXY HTTPS_PROXY PROXY
I had to downgrade to 2.2.3 and it works. ordova CLI: 7.0.1 Ionic Framework Version: 3.3. Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 Ionic App Scripts Version: 1. ios-deploy version: Not insta ios-sim version: Not installe OS: Windows 7 Node Version: v6.10.3 Xcode version: Not installed
I used the command: npm install -g ionic@legacy --save-exact
I tried downgrading to 2.2.3 as @jppampin and can confirm it worked fine, without making any changes for the proxy
sudo npm uninstall -g ionic
sudo npm install -g ionic@2.2.3
ionic start pruebaApp
Creating an Ionic 2.x app in /home/user/pruebaApp based on the tabs template.
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
Installing npm packages (may take a minute or two)...
\
♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫
Some helpful tips:
Run your app in the browser (great for initial development):
ionic serve
Run on a device or simulator:
ionic run ios[android,browser]
Share your app with testers, and test on device easily with the Ionic View companion app:
http://view.ionic.io
Issues still persists after upgrading to Ionic CLI to 3.2.0 as well
+1 for @sharewithamar
➜ ionic info
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Cordova CLI : 7.0.1
Ionic CLI : 3.2.0
local packages:
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic1 : 1.2.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic1 1.3.3
System:
Node : v6.10.3
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : not installed
ios-sim : not installed
Another +1 for @sharewithamar
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v6.9.5
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
@oikonomopo @ChrisMcNulty91 Manually merging bases works for time being.
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.2.0
Ionic Framework : ionic-angular 3.3.0
System:
Node : v7.8.0
OS : Windows 7
I'm having a similar issue when trying to use ionic login
. npm, node and other tools are working with the proxy. I tried to set PROXY, HTTP_PROXY, IONIC_HTTP_PROXY but no change. Here's my output:
>ionic login --verbose
[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Load local plugin @ionic/cli-plugin-cordova
[DEBUG] Load local plugin @ionic/cli-plugin-ionic-angular
[DEBUG] Load local plugin @ionic/cli-plugin-proxy
[WARN] You are already logged in! Prompting for new credentials.
? Email: ***
? Password: ***
[DEBUG] !!! ERROR ENCOUNTERED !!!
Error: Timeout of 10000ms exceeded
[DEBUG] Error: Timeout of 10000ms exceeded
at RequestBase._timeoutError (<userdir>\AppData\Roaming\npm\node_modules\ionic\node_modules\superage
nt\lib\request-base.js:567:13)
at Timeout.<anonymous> (<userdir>\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib
\request-base.js:582:12)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
>ionic info
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-plugin-proxy : 1.1.2
@ionic/cli-utils : 1.2.0
You have been opted out of telemetry. To change this, run: cordova telemetry on. 6.5.0
Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms : You have been opted out of telemetry. To change this, run: cordova telemetry o
n.
Ionic Framework : ionic-angular 3.1.0
System:
Node : v7.10.0
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Doesn't we have to use superagent-proxy here? Maybe req.proxy is undefined.
@seveves @sharewithamar @ChrisMcNulty91 @kabeza
Don't understand clearly why, but managed to start/build/run an android app based to blank template for
ionicv1
usingionic-cli v3
behindproxy
!!
For me the issue was the http
prefix! If this is your case, remove http/https
prefixes from proxyHosts at gradle.properties file!
I had my gradle.properties like this, and was failing: WRONG:
systemProp.http.proxyHost=http://squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=http://squid.proxy.com
systemProp.https.proxyPort=8080
RIGHT!:
Proper way to set proxy settings for gradle is:
systemProp.http.proxyHost=squid.proxy.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=squid.proxy.com
systemProp.https.proxyPort=8080
$ ionic info
global packages:
@ionic/cli-plugin-proxy : 1.2.0
@ionic/cli-utils : 1.2.0
Cordova CLI : 7.0.1
Ionic CLI : 3.2.0
local packages:
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic1 : 1.2.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic1 1.3.3
System:
Node : v6.10.3
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : not installed
ios-sim : not installed
$ printenv
...
HTTP_PROXY=http://squid.proxy.com:8080
http_proxy=http://squid.proxy.com:8080
...
Also i think that all github/urls are opened at my proxy, don't know if its related but give a try! But my issue with not being able to build due to gradlew/proxy etc are resolved! Hope it helps!
Mine misunderstanding was that after npm proxy settings
i edited ionic/gradle
settings and copy paste the hosts. At npm i have the prefixes (http/https) and its playing well, at gradle need to be removed!
But i have a question related to https://github.com/ionic-team/ionic-cli#environment-variables..
Didn't add IONIC_HTTP_PROXY
but it plays! Why?
@oikonomopo We also look for the following env variables: https://github.com/ionic-team/ionic-cli#using-a-proxy
The proxy environment variables do expect a full, properly formatted connection string.
Removing the http:// from the proxy url doesn't solve the issue for me. Can someone please check if req.proxy is really defined in the line I've mentioned? I'm not sure how to debug it myself.
I'm having this issue from a workplace ethernet connected computer not using a proxy. I could create new projects with no problems up until literally 5 minutes ago, where I now get a "ETIMEDOUT" error as though it cannot access the repository, yet I can manually download. I'm slightly baffled, I'm on Ionic 3 and as I say, no issues until now. Would appreciate this being cleared up ASAP!
@EllenaWarrantGroup if you still failed to download directly from github for ionic project, try the way from @sharewithamar as below, may work!
Have you tried setting "NODE_TLS_REJECT_UNAUTHORIZED=0" in environmental variable?
Can everyone try the latest CLI and latest proxy plugin? I believe I may have overlooked how npm shares globally installed libs.
Try with: HTTPS_PROXY=https://internal.proxy.com ionic start
Hi all, good news! I've upgraded this morning to the latest versions of ionic
& @ionic/cli-plugin-proxy
and everything is working now! 💯
$ ionic info
[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
@ionic/cli-plugin-proxy : 1.3.0
@ionic/cli-utils : 1.3.0
Ionic CLI : 3.3.0
System:
Node : v6.10.3
OS : Windows 8.1
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
@datencia Nice to hear the good news from you. I also tried updating to the latest one today, but for my case, "self cert" issue, still failed (Please, don't tell me how to configure the proxy, I have no idea about this as told from the network admin).
Anyway, tried setting the env. var. and we are all done!
The last update did it for me too. Now it's working :100:
Awesome! Sorry about that...
Thanks for the fix. Latest client version also works for me :+1:
Thanks for the fix. Update works for me
working here also. Thanks
PS: will I have to use always the prefix HTTPS_PROXY=http://1.1.1.1:222 ionic *** for everything?
no, HTTPS_PROXY
is an environment variable.
Can confirm that it works behind proxy after upgrading the CLI to 3.3.0 Thanks for the fix :+1:
global packages:
@ionic/cli-plugin-proxy : 1.3.0
@ionic/cli-utils : 1.3.0
Ionic CLI : 3.3.0
System:
Node : v6.10.3
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
I can confirm that it works behind a proxy since version 3.3.0. Many thanks for the fix.
Working now in my environment. Thanks a lot :D !
I'm facing proxy issues while getting started with Ionic 3.
After installing Ionic 3 & cordova via npm tried to create a new project with the below command as suggested by ionic help
ionic start helloWorld blank --type ionic-angular
but the project start fails with below error.Error: getaddrinfo ENOTFOUND github.com github.com:443
Have already set the required proxies and explained the issue in SO as well. Kindly check http://stackoverflow.com/questions/44021003/ionic-3-cli-unable-to-start-project-behind-proxy
Have installed
npm install -g @ionic/cli-plugin-proxy
as well. Kindly guide in resolving this issue.