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

get config error #122

Open
jack-gits opened this issue Nov 3, 2022 · 7 comments
Open

get config error #122

jack-gits opened this issue Nov 3, 2022 · 7 comments

Comments

@jack-gits
Copy link

遇到一个奇怪的错误

/Users/xuhao/opt/anaconda3-5.3.1/anaconda3/envs/pyth_3.7_ocr/bin/python /Users/xuhao/work/SourceCode/neuron-ocr/test/testdd.py
ERROR:nacos.client:[get-config] exception update expected at most 1 arguments, got 2 occur
Traceback (most recent call last):
File "/Users/xuhao/opt/anaconda3-5.3.1/anaconda3/envs/pyth_3.7_ocr/lib/python3.7/site-packages/nacos/client.py", line 395, in get_config
resp = self._do_sync_req("/nacos/v1/cs/configs", None, params, None, timeout or self.default_timeout)
File "/Users/xuhao/opt/anaconda3-5.3.1/anaconda3/envs/pyth_3.7_ocr/lib/python3.7/site-packages/nacos/client.py", line 612, in _do_sync_req
self._inject_version_info(all_headers)
File "/Users/xuhao/opt/anaconda3-5.3.1/anaconda3/envs/pyth_3.7_ocr/lib/python3.7/site-packages/nacos/client.py", line 776, in _inject_version_info
headers.update("User-Agent", "Nacos-Python-Client:v" + VERSION)
TypeError: update expected at most 1 arguments, got 2
ERROR:nacos.client:[get-config] get config from server failed, try snapshot, data_id:neuron-common.yml, group:neuron, namespace:dev1

@jack-gits
Copy link
Author

VERSION是0.1.9

@xiaoFine
Copy link

xiaoFine commented Nov 3, 2022

headers.update("User-Agent", "Nacos-Python-Client:v" + VERSION)
headers是字典,update应该是这样写吧?

headers.update({"User-Agent":"Nacos-Python-Client:v" + VERSION})

@FantZero
Copy link

FantZero commented Nov 3, 2022

用0.1.8版本,0.1.9的有bug

@jack-gits
Copy link
Author

好的,谢谢

@chenhao26-nineteen
Copy link

我们也遇到了,0.1.9这个bug感觉需要解一下

@bllli
Copy link

bllli commented Nov 7, 2022

@jack-gits 看到 #120 0.1.10 版本已合并主分支, 有计划什么时候发布到 pypi 吗?

@rainmanliu
Copy link

他们这库有过 测试用例吗,灰度有没有,这是很基础的语法错误啊

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

No branches or pull requests

6 participants