Skip to content
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

讯飞配置好后发送请求遇到 socket 连接关闭错误 #196

Open
wenzhiquan opened this issue Jul 11, 2024 · 4 comments
Open

讯飞配置好后发送请求遇到 socket 连接关闭错误 #196

wenzhiquan opened this issue Jul 11, 2024 · 4 comments

Comments

@wenzhiquan
Copy link

Current time:Thu Jul 11 2024 11:17:32 GMT+0800 (China Standard Time)
Automatic robot chat mode has been activated
🌸🌸🌸 / content:  请给我推荐一个上海好吃的饭店
🚀🚀🚀 / prompt 请给我推荐一个上海好吃的饭店
socket 连接关闭
AssertionError [ERR_ASSERTION]: 1204 == 0
    at Object.equal (/Users/elvin.wen/local/wechat-bot/node_modules/wechat4u/lib/util/global.js:69:24)
    at /Users/elvin.wen/local/wechat-bot/node_modules/wechat4u/lib/core.js:537:24
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PuppetWechat4u.messageSendText (file:///Users/elvin.wen/local/wechat-bot/node_modules/wechaty-puppet-wechat4u/dist/esm/src/puppet-wechat4u.js:616:9)
    at async WechatifiedUserClass.say (file:///Users/elvin.wen/local/wechat-bot/node_modules/wechaty/dist/esm/src/user-modules/contact.js:274:23)
    at async defaultMessage (file:///Users/elvin.wen/local/wechat-bot/src/wechaty/sendMessage.js:52:7)
    at async WechatyImpl.onMessage (file:///Users/elvin.wen/local/wechat-bot/src/index.js:60:3) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 1204,
  expected: 0,
  operator: '==',
  response: [Object],
  tips: '发送文本信息失败'
}

直接在讯飞调试中心请求是正常的
image

@wenzhiquan
Copy link
Author

使用 Kimi 也有同样的问题,有没有可能是网络的原因?

@wenzhiquan
Copy link
Author

wenzhiquan commented Jul 11, 2024

image

测试是能够通过的

@GFigting
Copy link

+1

@l0g2
Copy link

l0g2 commented Aug 1, 2024

我也遇到了这个1204错误, 原因是你不能给自己发消息.
另外"socket 连接关闭"是正常的日志, 不想要的话可以注释掉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants