nacos-group / nacos-examples

Nacos Examples
Apache License 2.0
951 stars 1.47k forks source link

使用nacos当注册中心报错 #50

Open xaviershl opened 3 years ago

xaviershl commented 3 years ago

按照文档, 我将一个dubbo项目的 address 从 zookeeper的 127.0.0.1:2181 改为 nacos 的 127.0.0.1:8848, 然后启动时提示 Failed to register dubbo://192.168.50.18:19095/cn.xavier.project.test.api.service.MerchantsRegisterService?anyhost=true&application=project-test-service&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=cn.xavier.project.test.api.service.MerchantsRegisterService&loadbalance=roundrobin&metadata-type=remote&methods=findByNumberCode,updateBankCardInfo,apply,balanceCashQuery,tradeBalanceCashCallback,tradeBalanceCash,wechatConfigQuery,addMerchantsRegister,notifyUrlCallback,findByPossessor,checkDataIntegrity,wechatConfigScheduled,queryMerchantsRegisterList,editMerchantsRegister,merchantBalanceQuery,signCallBackUrlCallback,reportConfig,report,reportCallback&pid=10780&release=2.7.7&revision=1.0.0&service.filter=dubboExceptionFilter, -exception&side=provider&threadpool=fixed&threads=10&timeout=30000&timestamp=1607323364522&version=1.0.0 to registry 127.0.0.1:8848, cause: failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:8848]) tried: failed to req API:127.0.0.1:8848/nacos/v1/ns/instance. code:500 msg: caused: Get data failed, key: com.alibaba.nacos.naming.iplist.public##DEFAULT_GROUP@@providers:cn.xavier.project.test.api.service.MerchantsRegisterService:1.0.0:; log.txt