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

deno does not support http proxy #588

Closed
saibing opened this issue Aug 24, 2018 · 8 comments
Closed

deno does not support http proxy #588

saibing opened this issue Aug 24, 2018 · 8 comments

Comments

@saibing
Copy link

saibing commented Aug 24, 2018

I set a http/https proxy on os:

baas@SZX1000428520:~/git/js/deno$ env | grep proxy
http_proxy=http://10.77.28.6:9090
https_proxy=http://10.77.28.6:9090

but deno cannot use them:

baas@SZX1000428520:~/git/js/deno$ deno hello.ts
Downloading http://unpkg.com/deno_testing@0.0.7/testing.ts
Error: Cannot resolve module "http://unpkg.com/deno_testing@0.0.7/testing.ts" from "/home/baas/git/js/deno/hello.ts".
  os.codeFetch message: an error occurred trying to connect: Connection timed out (os error 110)
    at throwResolutionError (deno/js/compiler.ts:99:9)
    at DenoCompiler.resolveModule (deno/js/compiler.ts:362:16)
    at DenoCompiler.resolveModuleName (deno/js/compiler.ts:396:33)
    at moduleNames.map.name (deno/js/compiler.ts:552:33)
    at Array.map (<anonymous>)
    at DenoCompiler.resolveModuleNames (deno/js/compiler.ts:543:24)
    at Object.compilerHost.resolveModuleNames (deno/third_party/node_modules/typescript/lib/typescript.js:111649:117)
    at resolveModuleNamesWorker (deno/third_party/node_modules/typescript/lib/typescript.js:82561:106)
    at resolveModuleNamesReusingOldState (deno/third_party/node_modules/typescript/lib/typescript.js:82768:24)
    at processImportedModules (deno/third_party/node_modules/typescript/lib/typescript.js:84005:35)
@ry ry added this to the future milestone Aug 24, 2018
@ry ry added the enhancement label Aug 24, 2018
@ry ry removed the enhancement label Oct 5, 2018
@zekth
Copy link
Contributor

zekth commented Mar 1, 2019

Does anyone have a workaround for this? Tried using this on windows but does not work:

netsh winhttp set proxy 'proxyurl'

@zekth
Copy link
Contributor

zekth commented Mar 4, 2019

We can achieve it by using hyper_proxy library. At the moment Deno only uses hyper base library which does not offer the possibility to use a proxy.

Are you ok to add hyper_proxy ? I can handle this.

@fd
Copy link
Contributor

fd commented Mar 6, 2019

I'm also interested in this functionality.

@aceodus
Copy link

aceodus commented Mar 25, 2019

@zekth could you a tutorial how to use the hyper_proxy ? now im using deno on windows and got this problem because coorperate proxy

@zekth
Copy link
Contributor

zekth commented Mar 25, 2019

@zekth could you a tutorial how to use the hyper_proxy ? now im using deno on windows and got this problem because coorperate proxy

Working on it ATM. There is a draft PR. Have to make it work.

@geglock geglock mentioned this issue Jun 25, 2019
43 tasks
@kt3k
Copy link
Member

kt3k commented Jun 27, 2019

@bartlomieju
Copy link
Member

FYI proxies should work on latest master, there's still tests missing tho

@ry
Copy link
Member

ry commented Sep 6, 2019

Support is in v0.17.0 - missing docs still #2873

@ry ry closed this as completed Sep 6, 2019
hardfist pushed a commit to hardfist/deno that referenced this issue Aug 7, 2024
This reverts commit 312cf8e.

This V8 upgrade causes some serious test failures in Deno: 

https://github.com/denoland/deno/actions/runs/7981611991/job/21793650383?pr=22505

This will require more work. I don't want to block others before the
Deno v1.41 release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants