-
Notifications
You must be signed in to change notification settings - Fork 31
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
Grpc HealthCheck Error #180
Comments
开启了鉴权吗? |
从错误上看 应该是鉴权的问题 |
|
有开启鉴权,账号密码正确 |
有开启鉴权,关闭后没报错,开启后账号密码正确,报错,有时是Connection is unregistered. 有时是"user not found! code: let client_props = ClientProps::new()
.server_addr(...)
.namespace(...)
.app_name(...)
.auth_username("nacos")
.auth_password("nacos");
let naming_service = NamingServiceBuilder::new(client_props)
.enable_auth_plugin_http()
.build()
.expect("Nacos naming_service build error"); |
我这边复现一下 |
若服务端没开鉴权,那么客户端就不需要开 |
这个问题,我也碰到了。本机自己的服务测试没发现问题。放服务器上就必现。 |
@CherishCai @onewe 两位大佬。我感觉就是蔡大哥说的登录异步引起的问题,获取配置我可以通过循环:
来解决。 |
近期就会解决。另外 loop 还不如启动时候初始化 client 后 sleep 500ms 更简单,哈哈哈 |
nacos-sdk = { version = "0.3", features = ["default"] }
nacos server version: v2.2.3
Project startups sometimes display error logs:
2023-07-12T15:59:32.7610834+08:00 ERROR nacos_sdk::common::remote::grpc::nacos_grpc_connection: connection health check failed convert to grpc message failed. request_id:None ret_code:500 error_code:301 message:Some("Connection is unregistered.")
at C:\Users\Administrator.cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\nacos-sdk-0.3.0\src\common\remote\grpc\nacos_grpc_connection.rs:377
in nacos_sdk::common::remote::grpc::nacos_grpc_connection::grpc_connection with id: "naming:192.168.1.100:8848:rs_cloud:1"
or:
how to fix? thanks
The text was updated successfully, but these errors were encountered: