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

nacos sdk,error: context deadline exceeded, make sure rpc service #326

Open
teleJa opened this issue Jul 26, 2024 · 0 comments
Open

nacos sdk,error: context deadline exceeded, make sure rpc service #326

teleJa opened this issue Jul 26, 2024 · 0 comments

Comments

@teleJa
Copy link

teleJa commented Jul 26, 2024

使用nacos作为注册中心后,client端调用报错如题所示
原因如下:
1.zero-contrib中的builder订阅nacos服务实例,但由于nacos sdk的服务缓存cache存在导致服务无变更的场景下,该订阅无法收到nacos的消息推送,从而无法处理回调,导致超时
image
image
2.临时规避
client端手动设置下环境变量避免使用缓存
image

image

gpt机翻英文
After using Nacos as the service registry center, the client encounters an error as described in the title when making a call.

The reasons are as follows:

In the zero-contrib library, the builder subscribes to Nacos service instances. However, due to the existence of the service cache in the Nacos SDK, which acts as a cache, under scenarios where the service remains unchanged, this subscription is unable to receive message pushes from Nacos, thus preventing the handling of the callback, which leads to a timeout,The client manually sets the environment variables to avoid using the cache.
image

image

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

1 participant