apache / dubbo-python2

Python Dubbo Client
Apache License 2.0
59 stars 18 forks source link

dubbo provider没有指定version的时候会失败 #3

Closed duval1024 closed 2 months ago

duval1024 commented 5 years ago

Traceback (most recent call last): File "/Users/duval/workspace/pycharm/kafkaDemo/Main.py", line 21, in result = dubbo_cli.call('listMarket', stockMarket, extraParam) File "/usr/local/lib/python2.7/site-packages/dubbo/client.py", line 67, in call host = self.__zk_register.get_provider_host(self.__interface) File "/usr/local/lib/python2.7/site-packages/dubbo/client.py", line 137, in get_provider_host self._get_providers_from_zk(path, interface) File "/usr/local/lib/python2.7/site-packages/dubbo/client.py", line 156, in _get_providers_from_zk self._register_consumer(providers) File "/usr/local/lib/python2.7/site-packages/dubbo/client.py", line 238, in _register_consumer 'version': provider_fields['version'], KeyError: 'version'

RitterHou commented 5 years ago

provider的version没有默认值,需要手动填写

leolinf commented 5 years ago

provider的version没有默认值,需要手动填写

在哪里手动指定?