Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ZkRegister object has no attribute 'hosts' #10

Closed
wants to merge 1 commit into from

Conversation

wuwen5
Copy link

@wuwen5 wuwen5 commented Dec 16, 2020

File "/Library/Python/2.7/site-packages/dubbo/client.py", line 157, in __resubscribe
    for interface in self.hosts.keys():
AttributeError: 'ZkRegister' object has no attribute 'hosts'

```File "/Library/Python/2.7/site-packages/dubbo/client.py", line 157, in __resubscribe
    for interface in self.hosts.keys():
AttributeError: 'ZkRegister' object has no attribute 'hosts'
```
@biyuhao
Copy link
Member

biyuhao commented Dec 18, 2020

Thanks for the pr. Would you please provide the steps to reproduce this issue?

@wuwen5
Copy link
Author

wuwen5 commented Dec 18, 2020

just a normal call

from dubbo.client import DubboClient, ZkRegister

zk = ZkRegister('172.19.97.81:2181')

dubbo_cli = DubboClient('com.x.x.service.XProvider', zk_register=zk, version="2.0")

response = dubbo_cli.call('methodA', '13800138000')
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Library/Python/2.7/site-packages/dubbo/client.py", line 157, in __resubscribe
    for interface in self.hosts.keys():
AttributeError: 'ZkRegister' object has no attribute 'hosts'

@wuwen5 wuwen5 closed this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants