问题一:具体表现为:
我:你好
bot:回复:“思考中……”
然后就没有反应了。
日志
2023-05-10 11:35:29 [D] gocqhttp 收到群 () 内 () 的消息: [CQ:at,qq=] 写一份 (1348188966)
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chat [chat-input] (): @ 写一份
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chatService create conversation (id: a5207b47-f842-43af-87af-240c9fc14e99,adapter: poe), supportInject: true
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chatService get lock for conversation a5207b47-f842-43af-87af-240c9fc14e99
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chat [chat] (): @写一份
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chatService get lock for conversation a5207b47-f842-43af-87af-240c9fc14e99
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chatService get lock for conversation a5207b47-f842-43af-87af-240c9fc14e99
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chat init conversation a5207b47-f842-43af-87af-240c9fc14e99 cost 1ms
2023-05-10 11:35:29 [D] @dingyi222666/chathub/chatService get lock for chat b32bd9ad-8e74-4769-9147-0e181c06f4ee
2023-05-10 11:35:29 [D] @dingyi222666/chathub-poe-adapter/api WebSocket URL: wss://tch208897.tch.poe.com/up/chan57-8888/updates?min_seq=4743036490&channel=poe-chan57-8888-esrxwxwzyrghkbvvpaeo&hash=12125152362377978657
2023-05-10 11:35:30 [D] @dingyi222666/chathub-poe-adapter/api WebSocket Connected
2023-05-10 11:35:31 [D] @dingyi222666/chathub-poe-adapter/api subscribe response: {“data”:{“autoSubscribe”:{“viewer”:{“id”:“Vmlld2VyOjA=”}}},“extensions”:{“is_final”:true}}
2023-05-10 11:35:39 [D] @dingyi222666/chathub/chat reply message: 思考中…
问题二:发送“你好”后,完全不回复消息
日志
2023-05-10 12:50:06 [D] gocqhttp 收到好友 () 的消息: 你好 (552453561)
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chat [chat-input] (): 你好
2023-05-10 12:50:06 [I] @dingyi222666/chathub-copilothub-adapter/preset preset:
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chatService create conversation (id: 297e1b1a-9cd3-4941-9ad6-853e4c2fb174,adapter: poe), supportInject: true
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chatService get lock for conversation 297e1b1a-9cd3-4941-9ad6-853e4c2fb174
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chat chat: 你好
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chatService get lock for conversation 297e1b1a-9cd3-4941-9ad6-853e4c2fb174
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chatService get lock for conversation 297e1b1a-9cd3-4941-9ad6-853e4c2fb174
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chat init conversation 297e1b1a-9cd3-4941-9ad6-853e4c2fb174 cost 2ms
2023-05-10 12:50:06 [D] @dingyi222666/chathub/chatService get lock for chat 6019c603-5505-425f-a67d-b779bbaf6d08
2023-05-10 12:50:07 [D] @dingyi222666/chathub-poe-adapter/api poe settings ‘{“tchannelData”:{“minSeq”:“4764263570”,“channel”:“poe-chan57-8888-qiahhzfobsxscboaixlv”,“channelHash”:“3082930497642490937”,“boxName”:“chan57-8888”,“baseHost”:“poe.com”,“targetUrl”:“”,“enableWebsocket”:true}}’
2023-05-10 12:50:08 [E] @dingyi222666/chathub/chat TypeError: fetch failed
at Object.fetch (C:\dev\koishi-app\node_modules\undici\index.js:109:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Api.initBot (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:187:32)
at async Api.getCredentials (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:165:9)
at async Api.init (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:169:13)
at async Api.request (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:99:9)
at async PoeClient.ask (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\client.js:31:24)
at async PoeAdapter.ask (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\index.js:36:30)
at async DefaultConversation.ask (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\services\chatService.js:241:34)
at async Chat.measureTime (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub\lib\chat.js:26:24)
2023-05-10 12:50:08 [D] @dingyi222666/chathub/chat [chat-limit/error] Delire(2449621312): 你好
2023-05-10 12:53:26 [W] app TypeError: Cannot set properties of undefined (setting ‘onclose’)
at C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:220:24
at new Promise ()
at Api.closeWebSocketConnection (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:219:16)
at Timeout._onTimeout (C:\dev\koishi-app\node_modules@dingyi222666\koishi-plugin-chathub-poe-adapter\lib\api.js:96:24)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)