Skip to content

NacosNamingService.shutdown() 崩溃 #293

@itcharge

Description

@itcharge

版本信息:

  • 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。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions