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

add_config_watcher 报错 AssertionError

Open
#209 0 comments 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

mac sillion

Python 3.13.1
nacos-sdk-python == 2.0.1

client.add_config_watcher(base_config.NACOS_DATA_ID,base_config.NACOS_GROUP, cb=nacos_config_callback)
报错:

Traceback (most recent call last):
  File "src/gevent/_abstract_linkable.py", line 287, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
  File "src/gevent/_abstract_linkable.py", line 333, in gevent._gevent_c_abstract_linkable.AbstractLinkable._notify_links
AssertionError: (None, <callback at 0x10e7e1a80 args=([],)>)
2025-02-06T13:45:26Z <callback at 0x10e7e1a80 args=([],)> failed with AssertionError

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 at the client.add_config_watcher call and reproduce the AssertionError with Python 3.13.1 and nacos-sdk-python 2.0.1 on macOS. Trace the callback failure shown in gevent/_abstract_linkable.py and confirm that the watcher completes without the reported AssertionError when the issue is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.