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作为配置中心的时候 为什么有时候能读取到配置 有时候读取的是空串 错误是nil #715

Open
hubingkuan opened this issue Jan 24, 2024 · 2 comments

Comments

@hubingkuan
Copy link

image
image

这是创建的n变量
image

@binbin0325
Copy link
Member

可以观察下从server端得到的返回是否每次都有数据,代码位置:config_proxy.go的queryConfig func中, 同时也观察下是否有错误日志

@hubingkuan
Copy link
Author

这里数据是空的原因找到了 如果是从缓存里面取值的话 不会走param.Content = response.Content 后面就会拿到""

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

2 participants