-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hangs behind HTTP Proxy #785
Comments
Did it work with any earlier versions? It's a bit difficult for me to simulate your actual environment, but it probably hangs here: https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/util/getVersions.js#L17 I don't quite know why though because |
I'll try to debug this at work. That's the first time I try v3 here, and it was working properly with v2. |
Getting the following error with
|
Getting this error with
|
Can confirm the same here using http proxy. |
Experienced a similar problem on Windows without the hanging but with a Could solve the error by manually set HTTP_PROXY and HTTPS_PROXY. Then it became a After changing the line to which could be solved by I hope nobody mind my question: In https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/util/installDeps.js#L46 the user settings are respected. In https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/util/getVersions.js#L17 not. Is there a purpose to do that? |
Maybe it's related to this axios issue : axios/axios#925 |
If this is an axios issue we can switch to a different HTTP client. Can anyone try it out? I don't have the network environment to confirm whether that would fix it. |
I'm going to give it a try tomorrow and providing feedback. |
Maybe https://github.com/request/request ? It's stated in the axios issue that this use case works out of the box with request. |
Have verified changing out request works in my environment. Unless someone else is already working on this I will put together a PR. |
Closes vuejs#785 Axios has a [known issue](axios/axios#658) that causes requests to hang when accessing an HTTPS resource via a proxy served over HTTP. This changes out the axios dependency for the [request](https://github.com/request/request) library. In order to keep `async/await` conventions easy, I also dropped in the [request-promise-native](https://github.com/request/request-promise-native) dependency.
Closes vuejs#785 Axios has a [known issue](axios/axios#658) that causes requests to hang when accessing an HTTPS resource via a proxy served over HTTP. This changes out the axios dependency for the [request](https://github.com/request/request) library. In order to keep `async/await` conventions easy, I also dropped in the [request-promise-native](https://github.com/request/request-promise-native) dependency.
Closes vuejs#785 Axios has a [known issue](axios/axios#658) that causes requests to hang when accessing an HTTPS resource via a proxy served over HTTP. This changes out the axios dependency for the [request](https://github.com/request/request) library. In order to keep `async/await` conventions easy, I also dropped in the [request-promise-native](https://github.com/request/request-promise-native) dependency.
Thanks @wadetandy ! Code changes look good to me. Can someone else in this thread try out #829 to see if that fixes it for you? |
Going to check this in the morning, but's looking good. |
) Closes #785 Axios has a [known issue](axios/axios#658) that causes requests to hang when accessing an HTTPS resource via a proxy served over HTTP. This changes out the axios dependency for the [request](https://github.com/request/request) library. In order to keep `async/await` conventions easy, I also dropped in the [request-promise-native](https://github.com/request/request-promise-native) dependency.
Thanks, it's working fine now for me ! |
Also thanks, it's working for me too. At least if I hadn't muddled up some settings for our proxy :/ |
i'm getting this error using
|
This workaround work for me.. I have to modified manually the request.js and indicate proxy as part of reqOpts. It doesn't seem to respect the environment variables that I have.
|
@jnal What variables are you using to set proxy normally? |
i have all the variables below set in .npmrc but that doesn't seem to be respected by the request. proxy=http://{domain}%5cu{username}:{pass}@proxy.company.com:8080 some of the settings above might be invalid but I had them anyway just to make sure I am not missiing anything. also in environment variables also I'm using windows 10, node 8.9.4 and npm 5.6.0 if that helps |
Did this ever get fixed? I am on 3.0.0 beta 10 and I still can't use |
@DrDanRyan this issue was resolved for me and a few others when my pr #829 was merged. |
@wadetandy , how do I get a release with you PR in it? Version numer? Or does dev branch feed NPM directly? (tried an failed with beta 15) |
My fix was merged and released with 3.0.0-alpha.10, so should be part of latest beta/RC. |
And I have confirmed as it is working for me with those releases. May be a related but separate bug affecting you. |
Version
3.0.0-alpha.8
Steps to reproduce
Run vue create on a computer configured with a corporate HTTP Proxy
(
http_proxy
andhttps_proxy
environment variable are defined, everything else is working properly)What is expected?
It should run as usual
What is actually happening?
vue create command hangs forever with no prompt at all.
Tested on Windows and Ubuntu.
The text was updated successfully, but these errors were encountered: