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

为什么发布配置会失败 #12057

Closed
triggergun opened this issue May 5, 2024 · 2 comments
Closed

为什么发布配置会失败 #12057

triggergun opened this issue May 5, 2024 · 2 comments

Comments

@triggergun
Copy link

try {
// 初始化配置服务,控制台通过示例代码自动获取下面参数
String serverAddr = "{serverAddr}";
String dataId = "{dataId}";
String group = "{group}";
Properties properties = new Properties();
properties.put("serverAddr", serverAddr);
ConfigService configService = NacosFactory.createConfigService(properties);
boolean isPublishOk = configService.publishConfig(dataId, group, "content");
System.out.println(isPublishOk);
} catch (NacosException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

这个案例为什么发布失败。文档也没有具体描述。

@KomachiSion
Copy link
Collaborator

请给出发布失败的报错信息, 以及${user.home}/logs/nacos 日志中的相关信息

@KomachiSion
Copy link
Collaborator

No more response from author, and current information is not enough to judge problem.

@KomachiSion KomachiSion closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants