Open alice184516 opened 1 year ago
2023-08-12 06:21:36.001 | DEBUG | platforms.onebotbot::148 - 私聊消息:你好 2023-08-12 06:21:36.001 | ERROR | universal:handle_message:295 - Expecting property name enclosed in double quotes: line 1 column 3 (char 2) Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\bot.py", line 54, in
File "asyncio\base_events.py", line 640, in run_until_complete sock.setblocking(False)
File "asyncio\windows_events.py", line 321, in run_forever
File "asyncio\base_events.py", line 607, in run_forever sock.close()
File "asyncio\base_events.py", line 1922, in _run_once
File "asyncio\events.py", line 80, in _run self._loop = loop │ └ <member '_loop' of 'Handle' objects> └ <Handle <TaskStepMethWrapper object at 0x000001F861A2C460>()>
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\platforms\onebotbot.py", line 151, in await handle_message( └ <function handle_message at 0x000001F8619ED6C0>
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\universal.py", line 261, in handle_message conversation_handler.current_conversation = await conversation_handler.create( │ │ │ └ <function ConversationHandler.create at 0x000001F8619ECF40> │ │ └ <conversation.ConversationHandler object at 0x000001F861A0A850> │ └ None └ <conversation.ConversationHandler object at 0x000001F861A0A850>
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\conversation.py", line 294, in create conversation = ConversationContext(_type, self.session_id) │ │ │ └ 'friend-1845163076' │ │ └ <conversation.ConversationHandler object at 0x000001F861A0A850> │ └ 'bing' └ <class 'conversation.ConversationContext'>
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\conversation.py", line 96, in init self.adapter = BingAdapter(self.session_id) │ │ │ └ 'friend-1845163076' │ │ └ <conversation.ConversationContext object at 0x000001F861A28FD0> │ └ <class 'adapter.ms.bing.BingAdapter'> └ <conversation.ConversationContext object at 0x000001F861A28FD0>
File "C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\chatgpt\adapter\ms\bing.py", line 41, in init self.cookieData = json.loads(account.cookie_content) │ │ │ │ │ └ '[{[{"domain":".bing.com","expirationDate":1723459821.475419,"hostOnly":false,"httpOnly":false,"name":"SnrOvr","path":"/","sa... │ │ │ │ └ BingCookiePath(cookie_content='[{[{"domain":".bing.com","expirationDate":1723459821.475419,"hostOnly":false,"httpOnly":false,... │ │ │ └ <function loads at 0x000001F838421800> │ │ └ <module 'json' from 'C:\Users\Administrator\Desktop\Windows-quickstart-go-cqhttp-refs.tags.v2.5.2\python3.11\python311.... │ └ [] └ <adapter.ms.bing.BingAdapter object at 0x000001F861A32890>
File "json__init__.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 353, in raw_decode
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 3 (char 2) 2023-08-12 06:21:36.042 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:出现了未知的错误。 Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚会话” 来回溯到上一条对话,你上一条说的我就当作没看见。 'adaptiveCards'
解决方法,如果自己搭建了bing聊天服务器,就去bing官网把_U和_KievRPSSecAuth的值重新获取一下
你好请问如何获取 _U和_KievRPSSecAuth的值