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

[ResponseTimeoutError]: Server no response in 3000ms, address#127.0.0.1:7777 #112

Open
JamJonson opened this issue Jun 26, 2023 · 5 comments

Comments

@JamJonson
Copy link

image
pm2 命令启动两个进程, 出现这种报错,怎么解决这种报错?

@Xs-lck
Copy link

Xs-lck commented Jul 14, 2023

我现在也有这个问题,大佬,你是怎么解决的

@xhavit
Copy link

xhavit commented Jul 31, 2023

最近频繁出现这种问题,有人解决一下吗?

@chalecao
Copy link

chalecao commented Nov 9, 2023

我的报错是:
2023-11-09 15:51:45,877 WARN 86822 nodejs.ResponseTimeoutError: register to channel: failed, will retry after 3s, Server no response in 3000ms, address#127.0.0.1:7777
看一下报错后面的本地端口是否关闭,本地执行:lsof -i :7777
然后关闭所有的node端口就好了

@North-City
Copy link

两种方法:
1.单出一个类继承NacosConfigClient ,重写里面的get clusterOptions() 方法 ,返回需要改变的参数(原始里面只包含了name属性,改变端口的话加上自定义的port就行).之后就实例化继承后的类,其他操作不变.
2. 在源码中有个options.cluster 的判断,如果提供了这个cluster 就会覆盖默认的cluster. options.cluster需要自己去实例化.

@ugrg
Copy link
Contributor

ugrg commented Apr 7, 2024

设置环境变量NODE_CLUSTER_CLIENT_PORT为0。

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

6 participants