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

wechaty-puppet-wechat upload media error #26

Open
linj121 opened this issue Nov 2, 2024 · 2 comments
Open

wechaty-puppet-wechat upload media error #26

linj121 opened this issue Nov 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@linj121
Copy link
Owner

linj121 commented Nov 2, 2024

2024-11-02T03:23:40.711Z error: [Scheduler] Task "video test" failed:
uploadMedia err: 
Error: uploadMedia err: 
    at getMediaId (/home/josh/projects/convo/node_modules/.pnpm/wechaty-puppet-wechat@1.18.4_brolog@1.14.2_gerror@1.0.16_wechaty-puppet@1.20.2_rxjs@7.8.1_/node_modules/wechaty-puppet-wechat/dist/cjs/src/puppet-wechat.js:1177:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PuppetWeChat.uploadMedia (/home/josh/projects/convo/node_modules/.pnpm/wechaty-puppet-wechat@1.18.4_brolog@1.14.2_gerror@1.0.16_wechaty-puppet@1.20.2_rxjs@7.8.1_/node_modules/wechaty-puppet-wechat/dist/cjs/src/puppet-wechat.js:1182:23)
    at async PuppetWeChat.messageSendFile (/home/josh/projects/convo/node_modules/.pnpm/wechaty-puppet-wechat@1.18.4_brolog@1.14.2_gerror@1.0.16_wechaty-puppet@1.20.2_rxjs@7.8.1_/node_modules/wechaty-puppet-wechat/dist/cjs/src/puppet-wechat.js:1196:29)
    at async /home/josh/projects/convo/node_modules/.pnpm/wechaty@1.20.2_@swc+core@1.6.13_brolog@1.14.2_redux@4.2.1_rxjs@7.8.1/node_modules/wechaty/dist/cjs/src/sayable/deliver-sayable.js:25:17
    at async WechatifiedUserClass.say (/home/josh/projects/convo/node_modules/.pnpm/wechaty@1.20.2_@swc+core@1.6.13_brolog@1.14.2_redux@4.2.1_rxjs@7.8.1/node_modules/wechaty/dist/cjs/src/user-modules/room.js:374:21)
    at async CronJob.<anonymous> (/home/josh/projects/convo/build/services/wechatyService/schedulers/index.js:80:17)
@linj121 linj121 added the bug Something isn't working label Nov 2, 2024
@linj121
Copy link
Owner Author

linj121 commented Nov 2, 2024

The error occurs when running this task, probably triggered by its high execution frequency.

  {
    name: "video test",
    target: {
      type: "room",
      name: "罗伯特",
    },
    cronTime: "*/10 * * * * *", // Runs every 10 seconds!
    action: {
      template: "CustomMessage",
      input: {
        type: "video",
        location: "https://www.w3schools.com/tags/mov_bbb.mp4",
      },
    },
    enabled: true,
  }

@linj121
Copy link
Owner Author

linj121 commented Nov 2, 2024

The ratio of media upload error to success among all executed tasks is almost 1 : 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant