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

Nacos2.1.0版本下,服务治理-实例列表-实例ID显示null #142

Closed
chenhongen opened this issue May 23, 2022 · 6 comments
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@chenhongen
Copy link

chenhongen commented May 23, 2022

1653313534(1)
实例接口返回结果,供参考:
97f0d4a1fb5fba4eef648ce7d39f769

@chenhongen chenhongen changed the title Nacos2.x版本下,配置管理不生效 Nacos2.1.0版本下,服务治理-实例列表-实例ID显示null May 23, 2022
@chenhongen chenhongen reopened this May 23, 2022
@MentosL
Copy link
Contributor

MentosL commented May 27, 2022

把nacos2.1当做注册中心来使用的嘛

@chenhongen
Copy link
Author

把nacos2.1当做注册中心来使用的嘛

yes

@zilongTong zilongTong added bug Something isn't working good first issue Good for newcomers labels May 30, 2022
@zilongTong
Copy link
Member

2.1版本的nacos openapi获取实例列表中没有InstanceId字段,改成从metadata中获取InstanceId
参见代码@com.tencent.tsf.femas.service.registry.NacosRegistryOpenApi #178行

1 similar comment
@zilongTong
Copy link
Member

2.1版本的nacos openapi获取实例列表中没有InstanceId字段,改成从metadata中获取InstanceId
参见代码@com.tencent.tsf.femas.service.registry.NacosRegistryOpenApi #178行

@cstongwei cstongwei self-assigned this Jun 1, 2022
@cstongwei
Copy link
Contributor

cstongwei commented Jun 6, 2022

测试没有发现问题。nacos openapi获取实例列表中返回了InstanceId。
image
image
不管是网关还是业务服务,femas控制台页面也都有正确的值。
image

image

使用的nacos是2.1.0版本
image
image

cstongwei added a commit to cstongwei/femas that referenced this issue Jun 6, 2022
@cstongwei
Copy link
Contributor

使用femas-instance-id 兜底解决nacos返回instanceId为空的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants