nacos-group / nacos-group/nacos-sdk-python

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

Open
#49 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
471
Forks
155
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Python snippet against the Nacos server and compare publish_config, get_config, and remove_config results. Trace those three NacosClient methods to determine why a successful publish is not retrievable. Done means the published test configuration can be fetched consistently, and removal is reflected by a subsequent get_config call.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.