novicezk / wechat-midjourney Goto Github PK
View Code? Open in Web Editor NEW基于 wechaty 代理微信客户端,接入 MidJourney
License: Apache License 2.0
基于 wechaty 代理微信客户端,接入 MidJourney
License: Apache License 2.0
我看有朋友说是没有设置mj.notify-hook参数,所以没有回调,但是小白含泪问一下,怎么设置mj.notify-hook
无法使用V 变换图的指令 看log日志,也是一直卡住的状态。。但是 U 和/imagine 可以正常使用
不好意思,按照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
不知道如何继续,如果需要更多的信息我会及时提供。感谢您的帮助!
输入/help能收到消息,输入/imagine,Midjourney那边没有收到消息
请问出现这样的情况是哪里配置出了问题
本地使用NAS配置的
cause: Error: connect ETIMEDOUT 104.196.232.237:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '104.196.232.237',
port: 443
}
任务能够正常发放,绘图成功,但是偶尔会无法返回图片,日志报错如下:
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()
`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)`
/help 可以工作, /imagine 也可以工作. 但是无法得到 /notify 的事件通知, 执行结果不知道, 绘画完成不知道.
我哪里设置还有问题?
兄弟 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
大侠有BLOCK_WORDS list吗
我没有修改代码,但是我无法成功发送图片消息。无论是下载图片发送,还是 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)
目前没有查到该如何解决这个问题。。。
[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.
请问nodejs是多少版本?
用 docker 部署的,但内存占用一直在涨,也没有作图
扫了二维码,什么反应也没有
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.