Skip to content
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

[Web] Can't install onnxruntime-node behind corporate proxy #23231

Closed
jnzw opened this issue Dec 31, 2024 · 10 comments · Fixed by #23232
Closed

[Web] Can't install onnxruntime-node behind corporate proxy #23231

jnzw opened this issue Dec 31, 2024 · 10 comments · Fixed by #23232
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@jnzw
Copy link
Contributor

jnzw commented Dec 31, 2024

Describe the issue

npm ERR! command failed
npm ERR! command sh -c node ./script/install
npm ERR! Downloading "https://github.com/microsoft/onnxruntime/releases/download/v1.20.1/onnxruntime-linux-x64-gpu-1.20.1.tgz"...
npm ERR! node:internal/deps/undici/undici:11576
npm ERR!     Error.captureStackTrace(err, this);
npm ERR!           ^
npm ERR!
npm ERR! TypeError: fetch failed
npm ERR!     at Object.fetch (node:internal/deps/undici/undici:11576:11)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
npm ERR!   cause: ConnectTimeoutError: Connect Timeout Error
npm ERR!       at onConnectTimeout (node:internal/deps/undici/undici:8522:28)
npm ERR!       at node:internal/deps/undici/undici:8480:50
npm ERR!       at Immediate._onImmediate (node:internal/deps/undici/undici:8511:13)
npm ERR!       at process.processImmediate (node:internal/timers:476:21) {
npm ERR!     code: 'UND_ERR_CONNECT_TIMEOUT'
npm ERR!   }
npm ERR! }
npm ERR!
npm ERR! Node.js v18.17.0

The fetch doesn't respect http_proxy and https_proxy set in the environment:

fetch(artifactUrl).then((res) => {

To reproduce

npm install onnxruntime-node

Urgency

No response

ONNX Runtime Installation

Other / Unknown

ONNX Runtime Version or Commit ID

1.20.1

Execution Provider

Other / Unknown

@jnzw jnzw added the platform:web issues related to ONNX Runtime web; typically submitted using template label Dec 31, 2024
@snnn
Copy link
Member

snnn commented Jan 4, 2025

Should have been fixed by #23242

@fs-eire fs-eire closed this as completed in 2a16ad0 Jan 5, 2025
snnn pushed a commit that referenced this issue Jan 8, 2025
…#23232)

### Description
Add proxy agent to fetch request



### Motivation and Context
Fixes #23231

---------

Signed-off-by: Junze Wu <junze.wu@intel.com>
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
tarekziade pushed a commit to tarekziade/onnxruntime that referenced this issue Jan 10, 2025
…microsoft#23232)

### Description
Add proxy agent to fetch request



### Motivation and Context
Fixes microsoft#23231

---------

Signed-off-by: Junze Wu <junze.wu@intel.com>
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
guschmue pushed a commit that referenced this issue Jan 12, 2025
…#23232)

### Description
Add proxy agent to fetch request



### Motivation and Context
Fixes #23231

---------

Signed-off-by: Junze Wu <junze.wu@intel.com>
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
@InventoCasa
Copy link

Any workaround? When a new release will be available which includes the Bugfix commit?

@snnn
Copy link
Member

snnn commented Feb 6, 2025

We will make a new release this month.

@jnzw
Copy link
Contributor Author

jnzw commented Feb 7, 2025

@InventoCasa See if this helps: huggingface/transformers.js#1138 (comment).

@rmiranda87
Copy link

We will make a new release this month.

Did this update get posted yet?

@fs-eire
Copy link
Contributor

fs-eire commented Mar 2, 2025

We will make a new release this month.

Did this update get posted yet?

Not yet. The release branch is already created for v1.21 and release process is being worked on.

@rmiranda87
Copy link

We will make a new release this month.

Did this update get posted yet?

Not yet. The release branch is already created for v1.21 and release process is being worked on.

How long does that process normally take? a few days, week, month?

@fs-eire
Copy link
Contributor

fs-eire commented Mar 7, 2025

We will make a new release this month.

Did this update get posted yet?

Not yet. The release branch is already created for v1.21 and release process is being worked on.

How long does that process normally take? a few days, week, month?

Unfortunately I don't have the exact date for it. I can only tell that it's in process at the moment. I can update here and @ you when it's released.

@fs-eire
Copy link
Contributor

fs-eire commented Mar 8, 2025

@rmiranda87 onnxruntime-node@1.21.0 is published

@rmiranda87
Copy link

@rmiranda87 onnxruntime-node@1.21.0 is published

Thank you

ashrit-ms pushed a commit that referenced this issue Mar 17, 2025
…#23232)

### Description
Add proxy agent to fetch request



### Motivation and Context
Fixes #23231

---------

Signed-off-by: Junze Wu <junze.wu@intel.com>
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants