You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/12/16 11:16:13 UTC

[GitHub] [dubbo-python2] wuwen5 opened a new pull request #10: fix: ZkRegister object has no attribute 'hosts'

wuwen5 opened a new pull request #10:
URL: https://github.com/apache/dubbo-python2/pull/10


   ```
   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'
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [dubbo-python2] wuwen5 commented on pull request #10: fix: ZkRegister object has no attribute 'hosts'

Posted by GitBox <gi...@apache.org>.
wuwen5 commented on pull request #10:
URL: https://github.com/apache/dubbo-python2/pull/10#issuecomment-747955573


   just a normal call
   
   ```python
   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'
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-python2] biyuhao commented on pull request #10: fix: ZkRegister object has no attribute 'hosts'

Posted by GitBox <gi...@apache.org>.
biyuhao commented on pull request #10:
URL: https://github.com/apache/dubbo-python2/pull/10#issuecomment-747845714


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org