原来是我把http的端口填成ws的了,麻了
S
SkilledExtractor 发布的帖子
-
RE: ChatLearning——让bot学会你的群聊
在关闭了websocket的验证后报错变成这个了
Traceback (most recent call last): File "ChatClass.py", line 393, in run self._target(*self._args, **self._kwargs) File "Chatmain.py", line 1965, in getcommand_chat message = simuse.Fetch_Message(data) File "simuse.py", line 88, in Fetch_Message res = json.loads(res.text) 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) ChatLearning ->
-
RE: ChatLearning——让bot学会你的群聊
启动项目就报错,下面是报错代码。
Traceback (most recent call last): File "Chatmain.py", line 2202, in <module> data = simuse.Get_Session(data) File "simuse.py", line 64, in Get_Session res = json.loads(res.text) 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) [1792] Failed to execute script 'Chatmain' due to unhandled exception!
因为没怎么学Python,所以根本不会修。麻烦作者大大帮我看看是什么问题。
Python版本是3.11.4我下载时的最新版,系统为Windows Server 2016