nacos-sdk-python icon indicating copy to clipboard operation
nacos-sdk-python copied to clipboard

publish_config 返回True,nacos中没有对应的配置,通过get_config获取,返回None

Open sx0309 opened this issue 4 years ago • 1 comments

SERVER_ADDRESSES = "127.0.0.1:8848" client = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE, username="csx", password="csx") print(client.publish_config('test', 'test', json.dumps({'a': 1, 'b': 2}), config_type='json')) print(client.get_config('test', 'test')) print(client.remove_config("test", "test")) print(client.get_config('test', 'test'))

image

sx0309 avatar May 25 '21 03:05 sx0309

同样的问题,我这边解决方法是NacosClient初始化时不指定namespace或指定正确的namespace。 @sx0309

Vaskka avatar Jul 26 '21 08:07 Vaskka