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 获取配置的时候,403鉴权失败无法获取 #115

Open
Dr294769070 opened this issue Nov 2, 2023 · 0 comments
Open

从 nacos 获取配置的时候,403鉴权失败无法获取 #115

Dr294769070 opened this issue Nov 2, 2023 · 0 comments

Comments

@Dr294769070
Copy link

问题

const client = new NacosConfigClient({ ... })
client.getConfig('dataid', 'group')

直接获取 config的时候,提示 403 无权限。

当在 new NacosConfigClient时明确指定 username 和 password 时,获取成功。

不过从文档看,new NacosConfigClient传参并不支持 username 和 password 这两个参数,这是为什么呢?

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