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

error sending request for welcome.ts : error trying to connect: invalid dnsname #5296

Closed
U97F3 opened this issue May 14, 2020 · 10 comments
Closed
Labels
stale tls Issues related to TLS implementation

Comments

@U97F3
Copy link

U97F3 commented May 14, 2020

$ deno run https://deno.land/std/examples/welcome.ts
showed the result :
line 1 : Download https://deno.land/std/examples/welcome.ts
line 2 : error: error sending request for url (https://deno.land/std/examples/welcome.ts): error trying to connect: invalid dnsname
how could i make it?

@onyz4x
Copy link

onyz4x commented May 14, 2020

try
deno run --allow-net https://deno.land/std/examples/welcome.ts

@U97F3
Copy link
Author

U97F3 commented May 14, 2020

try
deno run --allow-net https://deno.land/std/examples/welcome.ts

thank you for your reply, but it didn't work.

@bartlomieju
Copy link
Member

@U97F3 this looks like a problem related with your network, are you using some proxy?

@hanhduykaka
Copy link

I have same error, my network using proxy server.

deno install https://deno.land/std/http/server.ts
Download https://deno.land/std/http/server.ts
error: error sending request for url (https://deno.land/std/http/server.ts): error trying to connect: tcp connect error: No connection could be made because the target machine actively refused it. (os error 10061)

@hanhduykaka
Copy link

how to by pass proxy, I can't disabled or turn off proxy. I'm not an administrator

@ghost
Copy link

ghost commented Jun 14, 2020

how to by pass proxy, I can't disabled or turn off proxy. I'm not an administrator

I met the same problem as you, and I found my proxy is unstable, you can download that .ts files and run in local network like http://localhost:5000/welcome.ts

image

Maybe, deno install ./server.ts is OK!

@hanhduykaka
Copy link

Oh, awesome!
I download all and run local
I look like node_modules ^^
https://github.com/hanhduykaka/deno

@juzi5201314
Copy link
Contributor

I also encountered this problem and I was using a proxy.
fetch("https://google.com"):
error: Uncaught Http: error sending request for url (https://google.com/): error trying to connect: invalid dnsname

@bartlomieju bartlomieju added the tls Issues related to TLS implementation label Oct 14, 2020
@kidonng
Copy link
Contributor

kidonng commented Oct 20, 2020

@hronro mentioned that this may be a upstream bug: rustls/rustls#184

Edit: Also see #7660

@stale
Copy link

stale bot commented Jan 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 6, 2021
@stale stale bot closed this as completed Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale tls Issues related to TLS implementation
Projects
None yet
Development

No branches or pull requests

6 participants