Comments (10)
I published your PR, let me know how it goes.
from gl-vsts-tasks-yarn.
It works! Thanks for your help!
For future references: I've defined HTTPS_PROXY and HTTP_PROXY as system variables pointing to http(s)://:port.
This makes yarn work behind a proxy, and with the change done the HTTPS_PROXY variable is now also used successfully by the Yarn installer Task.
from gl-vsts-tasks-yarn.
you need to set environements variables proxy
and https-proxy
or add a .yarnrc with those values.
see https://github.com/yarnpkg/yarn/blob/master/src/config.js#L341
from gl-vsts-tasks-yarn.
@DalpheSDC did you give it a try?
from gl-vsts-tasks-yarn.
Closing, feel free to reopen if you need.
from gl-vsts-tasks-yarn.
Hi!
I hope it's ok to re-open this issue as I'm facing the same problem.
Your response points to yarn itself, but it's actually the yarn installer that fails to download yarn.
I've gotten as far as finding that aparently the node http client which is used by follow-redirects aparently does not honor the standard HTTP_PROXY and HTTPS_PROXY environement variables that I've set in addition to PROXY and HTTPS-PROXY as you suggest above.
Would it be possible to use tl.getHttpProxyConfiguration(); to get the agent's proxy config and then pass that on to the options of the .get method in downloadFile?
from gl-vsts-tasks-yarn.
from gl-vsts-tasks-yarn.
I'll see what I can do. The JavaScript changes should be doable, but testing it probably requires me to create a private marketplace deployment so I can test it inside DevOps I guess.
from gl-vsts-tasks-yarn.
@andersthorsen, I removed the dependency to follow redirect which does not support proxies
from gl-vsts-tasks-yarn.
Thanks!
Unfortunately I get the same problem, except I get a bit more error messages:
##[debug]isExplicit: null
53##[debug]explicit? false
54##[debug]downloading: https://publicblobs.geeklearning.io/yarn/tarballsV2.json
55##[debug]task result: Failed
56##[error]connect ETIMEDOUT 104.27.154.154:443
57##[debug]Processed: ##vso[task.issue type=error;]connect ETIMEDOUT 104.27.154.154:443
58##[debug]Processed: ##vso[task.complete result=Failed;]connect ETIMEDOUT 104.27.154.154:443
I cloned the repository and reproduced the issue with "yarn test"
I'm creating a pull requests with the changes I needed to be able to run yarn test successfully behind a proxy.
from gl-vsts-tasks-yarn.
Related Issues (20)
- Upgrade to Node 10 execution handler HOT 3
- Yarn tasks fails due to DNS issue? `getaddrinfo ENOTFOUND publicblobs.geeklearning.io publicblobs.geeklearning.io:443` HOT 16
- Yarn tasks suddenly failing with node-sass module not found error since Dec1 2021 HOT 2
- Yarn Use failing with "Yarn package layout unexpected." HOT 1
- Unable to run yarn after upgrading yarn version to 3.x in azure build pipeine HOT 2
- Please support repository authentication for Yarn 3+ HOT 3
- It Couldn't installed on Azure ΩDevops Local 64 bit
- Yarn install times out with no debug output HOT 2
- Task version Preview only HOT 3
- New feature: retries HOT 5
- Wont execute - wrong agent version HOT 5
- Yarn install task failing consistently with [error]connect ETIMEDOUT 104.27.154.154:443 HOT 8
- How to run other Yarn comands HOT 7
- info There appears to be trouble with you network connection HOT 6
- Sub-project's `yarn install` (called in `postinstall` of top project) gets 401s (despite seing the .npmrc file)
- Azure Devops: ##[error]Yarn package layout unexpected.
- Unexpected token < in JSON at position 0 HOT 1
- Option to disable word-wrapping the output in VSTS. HOT 1
- Yarn Azure Devops Task not failing the yaml build pipeline if the task fails
- Azure Devops: Yarn task failing intermittently HOT 1
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 gl-vsts-tasks-yarn.