-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #1351
Comments
尝试打印过拿到的数据 给的是一个html的片段 最后处理报错了 |
我遇到的是完全一致的问题 |
` File "asyncio\events.py", line 80, in _run File "C:\0000\chatgpt\framework\platforms\http_service_legacy.py", line 107, in process_request
File "C:\0000\chatgpt\framework\middlewares\concurrentlock.py", line 44, in handle_request File "C:\0000\chatgpt\framework\middlewares\middleware.py", line 8, in handle_request File "C:\0000\chatgpt\framework\middlewares\ratelimit.py", line 24, in handle_request File "C:\0000\chatgpt\framework\middlewares\timeout.py", line 28, in handle_request File "asyncio\tasks.py", line 479, in wait_for File "C:\0000\chatgpt\framework\universal.py", line 255, in _request_func File "C:\0000\chatgpt\framework\conversation.py", line 71, in input File "C:\0000\chatgpt\framework\llm\baidu\yiyan.py", line 92, in ask File "C:\0000\chatgpt\framework\llm\baidu\yiyan.py", line 189, in get_sign File "C:\0000\python3.11\Lib\site-packages\httpx_models.py", line 756, in json File "json_init_.py", line 346, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)` |
提交 issue 前,请先确认:
表现
File "F:\chat\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\python3.11\Lib\site-packages\revChatGPT\V3.py", line 287, in ask_stream_async
resp: dict = json.loads(line)
│ │ └ 'ype html><meta name="viewport" content="width...
│ └ <function loads at 0x0000022BBB434FE0>
└ <module 'json' from 'F:\chat\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\python3.11\python311.zip\json\init.pyc'>
File "json_init_.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
运行环境:
复现步骤
描述你是如何触发这个 BUG 的
运行后进行对话 一直提示
[OneBot] 尝试发送消息:出现故障!如果这个问题持 续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚对话” 来回溯到上一条对话,你上一条说的我就当作没看见。
原因:Expecting value: line 1 column 1 (char 0)
预期行为
返回chatgpt的回复
截图
相关日志、聊天记录的截图,没有可跳过
其他内容
此处填写其他内容,没有可跳过
The text was updated successfully, but these errors were encountered: