-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: 运行python client 出错 #5850
Comments
可以在报错前一行打印下 r.text,可能是返回结果为空 |
一个终端运行: warnings.warn("Setuptools is replacing distutils.") 另外一个: Traceback (most recent call last): |
你好,请问你的问题解决了吗,我也是遇到这种问题 |
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
as https://github.com/PaddlePaddle/PaddleNLP/blob/develop/docs/server.md said
first:
paddlenlp server server:app --host 0.0.0.0 --port 8189 --workers 1
然后在另外的终端运行
python client.py
Traceback (most recent call last):
File "/PaddleNLP/model_zoo/uie/deploy/serving/simple_serving/client.py", line 28, in
datas = json.loads(r.text)
File "anaconda3/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "anaconda3/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "anaconda3/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: