alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.91k stars 8.33k forks source link

[sub-server-error] no right when using spring-cloud-alibaba and dubbo #1710

Open michaelwoo1 opened 4 years ago

michaelwoo1 commented 4 years ago

image i attempt to build a new project by using spring-cloud-alibaba lately.when it start,there is a ERROR "[sub-server-error] no right, dataId={}, group={}, tenant={}".it seems that "agent.httpGet" did not contains the params named 'username' and 'password' which cases the 403 error, and no way to set them.i have to closed the nacos auth by seting "nacos.core.auth.enabled=false" to avoid the error.what should i do to connecting nacos correctly? 最近尝试以spring-cloud-alibaba搭建我们的新项目,但在启动时报了“[sub-server-error] no right, dataId={}, group={}, tenant={}”的错误;debug后发现可能是ClientWorker发http请求连接nacos服务器时,没有携带uesrname和password的缘故。但参数都是源码写死的。我该怎么做呢? environment:nacos1.2.1client、nacos1.2.1server image

michaelwoo1 commented 4 years ago

this is my bootstrap.yaml: image

yuhuangbin commented 4 years ago

使用问题请去社区钉钉群讨论或者参考spring cloud alibaba example工程,社区群汇总

wanisily commented 3 years ago

this is my bootstrap.yaml: image

请问解决了吗?

theonefx commented 3 years ago

你这里好像使用的是 dubbo 直接连接 nacos ,并没有通过 sca 来集成,需要查看一下,在dubbo中如何配置nacos 的账号和密码

theonefx commented 3 years ago

问了一下,这个属于 dubbo 那边的一个已知问题,关联 issue :https://github.com/apache/dubbo/issues/6723