GithubHelp home page GithubHelp logo

novicezk / wechat-midjourney Goto Github PK

View Code? Open in Web Editor NEW
222.0 222.0 81.0 168 KB

基于 wechaty 代理微信客户端,接入 MidJourney

License: Apache License 2.0

TypeScript 88.87% Dockerfile 8.96% Shell 2.17%
midjourney wechat wechaty

wechat-midjourney's People

Contributors

joyhope avatar novicezk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wechat-midjourney's Issues

wechat client start failed

不好意思,按照readme.md一步步操作的,然后当执行:docker logs -f -n 200 wechat-midjourney的时候报错:

[email protected] serve
node --loader ts-node/esm src/main.ts

(node:19) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Notify server start success on port 4120
12:52:25 ERR PuppetWeChatBridge start() exception: Error: net::ERR_CONNECTION_CLOSED at https://wx.qq.com?lang=zh_CN&target=t
12:52:25 ERR PuppetWeChat initBridge() exception: net::ERR_CONNECTION_CLOSED at https://wx.qq.com?lang=zh_CN&target=t
12:52:25 WARN PuppetWeChatBridge stop() page.close() exception: Error: Protocol error: Connection closed. Most likely the page has been closed.
wechat client start failed: Error: net::ERR_CONNECTION_CLOSED at https://wx.qq.com?lang=zh_CN&target=t
不知道如何继续,如果需要更多的信息我会及时提供。感谢您的帮助!

有时候图片无法返回

任务能够正常发放,绘图成功,但是偶尔会无法返回图片,日志报错如下:

Error: PuppetWeChat.uploadMedia(): upload fail
at PuppetWeChat.uploadMedia (file:///app/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:1470:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PuppetWeChat.messageSendFile (file:///app/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:1489:21)
at async file:///app/node_modules/wechaty/src/sayable/deliver-sayable.ts:41:13
at async WechatifiedUserClass.say (file:///app/node_modules/wechaty/src/user-modules/room.ts:496:15)

无法调用代理接口

发现这一句代码是false
if (message.date().getTime() < initializedAt) {
return;
}
可以说一下怎么解决吗
time 1684147085000 message.date().getTime()
message 1684146991274 initializedAt success
运行结果是initializedAt小于message.date().getTime()

zeabur配置的mj_notify_hook不生效

环境变量填了,看了一下日志还是调用的localhost
image

`14:24:292023-06-24 14:24:29.527 WARN 1 --- [ TaskNotify-7] c.g.n.m.service.NotifyServiceImpl : 推送任务变更失败, 任务ID: 1941636824477357, 描述: I/O error on POST request for "http://localhost:4120/notify": Connection refused; nested exception is java.net.ConnectException: Connection refused

14:24:352023-06-24 14:24:35.618 DEBUG 1 --- [ ReadingThread] c.g.n.m.wss.user.UserMessageListener : UPDATE - Midjourney Bot: 小孩 --niji 5 - <@1021328692884021248> (31%) (fast)`

about notify

/help 可以工作, /imagine 也可以工作. 但是无法得到 /notify 的事件通知, 执行结果不知道, 绘画完成不知道.

我哪里设置还有问题?

notifyCallback设置了不生效

兄弟 wechat-midjourny我用的是 本地 电脑npm run serve
notifyCallback是不是本地公网的 ip呢
类似于 http://本地公网ip:4120/notify
但是notifyCallback即使填写了也是回调失败
具体从rail发过来的报错是
WARN 1 --- [ TaskNotify-8] c.g.n.m.service.NotifyServiceImpl : 推送任务变更失败, 任务ID: 1696147339321378, notifyHook: http://103.84.217.155:4120/nofity, 描述: I/O error on POST request for "http://103.84.217.155:4120/nofity";: Connection refused; nested exception is java.net.ConnectException: Connection refused

wechaty 无法回复图片消息

我没有修改代码,但是我无法成功发送图片消息。无论是下载图片发送,还是 fromURL 方法,都不成功。

请问是什么原因啊。

报错日志:

19:08:24 ERR PuppetWeChat uploadMedia(): upload fail
19:08:24 ERR PuppetWeChat sendMedia() exception: PuppetWeChat.uploadMedia(): upload fail
file:///Users/repository/github.com/wechat-midjourney/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:1470
      throw new Error('PuppetWeChat.uploadMedia(): upload fail')
            ^
Error: PuppetWeChat.uploadMedia(): upload fail
    at PuppetWeChat.uploadMedia (file:///Users/repository/github.com/wechat-midjourney/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:1470:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async PuppetWeChat.messageSendFile (file:///Users/repository/github.com/wechat-midjourney/node_modules/wechaty-puppet-wechat/src/puppet-wechat.ts:1489:21)
    at async file:///Users/repository/github.com/wechat-midjourney/node_modules/wechaty/src/sayable/deliver-sayable.ts:41:13
    at async WechatifiedUserClass.say (file:///Users/repository/github.com/wechat-midjourney/node_modules/wechaty/src/user-modules/room.ts:496:15)

目前没有查到该如何解决这个问题。。。

大佬,docker 部署为什么一直不出二维码

[email protected] serve
node --loader ts-node/esm src/main.ts

(node:18) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Notify server start success on port 4120

11:46:10 WARN WechatyPuppetMixin start() starting puppet ... timeout
11:46:13 WARN WechatyPuppetMixin start() puppet info: Puppet(wechat-assistant)

11:47:49 ERR PuppetWeChatBridge start() exception: TimeoutError: Navigation timeout of 60000 ms exceeded
11:48:03 ERR PuppetWeChat initBridge() exception: Navigation timeout of 60000 ms exceeded
11:48:03 WARN PuppetWeChatBridge stop() page.close() exception: Error: Protocol error: Connection closed. Most likely the page has been closed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.