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

ConnectionTimeoutError: Connect timeout for 5000ms #633

Closed
ikeepf opened this issue Mar 24, 2017 · 17 comments
Closed

ConnectionTimeoutError: Connect timeout for 5000ms #633

ikeepf opened this issue Mar 24, 2017 · 17 comments

Comments

@ikeepf
Copy link

ikeepf commented Mar 24, 2017

使用egg-init时报错!
ConnectionTimeoutError: Connect timeout for 5000ms, GET https://registry.cnpmjs.org/egg-boilerplate-simple/latest -2 (connected: false, keepalive socket: false)

@ikeepf ikeepf changed the title ConnectionTimeoutError: Connect timeout for 5000ms, GET https://registry.cnpmjs.org/egg-boilerplate-simple/latest -2 (connected: false, keepalive socket: false) ConnectionTimeoutError: Connect timeout for 5000ms Mar 24, 2017
@atian25
Copy link
Member

atian25 commented Mar 24, 2017

写的很清楚了,网络问题,多重试

@atian25 atian25 closed this as completed Mar 24, 2017
@ikeepf
Copy link
Author

ikeepf commented Mar 24, 2017

一直没成功过,难道公司和家里的网络都有问题?

@atian25
Copy link
Member

atian25 commented Mar 24, 2017

curl https://registry.cnpmjs.org/egg-boilerplate-simple/latest 试试

不行的话就 egg-init -r npm

@ikeepf
Copy link
Author

ikeepf commented Mar 24, 2017

并不管用...还是报同样的错误...

@atian25
Copy link
Member

atian25 commented Mar 24, 2017

检查下你的防火墙啥的,这里就是一个简单的请求 https://registry.cnpmjs.org/egg-boilerplate-simple/latest

@ChangedenCZD
Copy link

遇到一样的问题,用浏览器访问url没问题,用egg就报错

@atian25
Copy link
Member

atian25 commented Nov 23, 2017

网络问题,自己检查下吧。 egg-init 里面只是做了一个 curl 而已。你浏览器可能是开代理了。

@ChangedenCZD
Copy link

ChangedenCZD commented Nov 23, 2017

知道问题了,你说得对,原来egg的例子中的域名被墙了!!!希望作者更新例子,毕竟难得的国内框架。

@IEfucker
Copy link

试了几次成功了,不确定是什么问题

@thiscallback
Copy link

我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError

@weijiatan456
Copy link

我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError

遇到同样的问题!坑啊!

@atian25
Copy link
Member

atian25 commented Mar 8, 2019

curl 不了的同学,安装个 https://github.com/eggjs/egg-development-proxyagent 插件看看

@lidalve
Copy link

lidalve commented Mar 12, 2019

我也遇到这个问题了,我开了代理的(不仅仅是浏览器代理,整个电脑都走代理的),浏览器或者postman都能get到来自*.firebaseio.com的json数据,但是例子里的curl就get不到,提示ConnectionTimeoutError

也是,浏览器直接可以浏览json数据。但是eggjs中就无法curl到了。不能转至国内云提供例子数据服务么?

@atian25
Copy link
Member

atian25 commented Mar 12, 2019

等新文档上线后,就是新的示例了。

@yanbinkwan
Copy link

When I'd restared my computer.. then it worked.

@atian25
Copy link
Member

atian25 commented Jun 18, 2020

等新文档上线后,就是新的示例了。

https://eggjs.github.io/zh/quickstart/egg.html

@SodaNYC
Copy link

SodaNYC commented Jan 29, 2021

When I'd restared my computer.. then it worked.

我的问题是,用了tnpm update以后,项目就跑不起来了,报错ConnectionTimeoutError: Connect timeout for 5000ms,再怎么 tnpm start和tnpm update 都没用,然后看到了重启可以修复我就试了一下。重启完还是一样的问题,然后我就再tnpm update了一下,就好了

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

9 participants