nacos-group / nacos-group/nacos-sdk-python
NacosNamingService.shutdown() 崩溃
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 471
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
版本信息:
- nacos-sdk-python v3.0.4
错误信息:
- 调用 NacosNamingService.shutdown() 时崩溃。提示 TypeError: object NoneType can't be used in 'await' expression。
可能原因:
- NacosNamingService.shutdown() 方法调用 self.service_info_updater.stop(),但在某些情况下(比如服务刚注册还没有启动订阅更新器时),service_info_updater 可能是 None 或者 stop() 方法返回 None,导致 await None 抛出 TypeError。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at NacosNamingService.shutdown() and inspect how self.service_info_updater is initialized and how its stop() method behaves. Reproduce shutdown immediately after registration, before the subscription updater starts; done means shutdown no longer raises TypeError when the updater is absent or stop() returns None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100