Description
软件环境
- paddlepaddle-gpu: 2.4.2
- paddlenlp: 2.5.2
CUDA 10.2
cudnn 8.7
重复问题
- I have searched the existing issues
错误描述
Traceback (most recent call last):
File "/PaddleNLP/model_zoo/uie/deploy/serving/simple_serving/client.py", line 28, in <module>
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)
稳定复现步骤 & 代码
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)