midjourney-proxy-on-wechat's Issues
请问下这是什么报错
[ERROR][2023-08-01 09:52:51][mjapi.py:61] - 'code'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\chat\plugins\midjourney\mjapi.py", line 59, in imagine
return self.subTip(res)
File "C:\Users\Administrator\Desktop\chat\plugins\midjourney\mjapi.py", line 36, in subTip
code = rj["code"]
KeyError: 'code'
[INFO][2023-08-01 09:52:51][wechat_channel.py:186] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
❌ 任务提交失败), receiver=@691d174cf62e803b95fafe1de3b3f8f04761e0c101dc686024f9e8d391ff7467
识图触发
收到图片触发,识图,能关吗这个?
在不影响垫图的识图的情况下,如何实现
希望能添加一个每个用户画图上限的功能。
大佬,求救,要哭了,弄了好几天了,始终卡在一个环节,能请教一下么?
大佬,我别的都完成了,就始终卡在一个错误,不管如何修改,GPT和claude都快秃皮了,实在搞不定了,一直提示[ERROR][2023-09-12 19:17:37][chat_channel.py:280] - Worker return exception: '_mjApi' object has no attribute 'reroll_prefix',我实在无能为力了,你能救救我么?我也联系不上您,如果您看到我的求救了,可以加我V,lylsfei,感谢您,我实在绷不住了
输入$mj_help指令时报错,求大佬指点
railway平台部署,依次完成到#scanp扫描出插件MidJourney_v1.0.45
在输入$mj_help报错如下
[ERROR][2023-08-04 14:38:15][chat_channel.py:270] - Worker return exception: '_mjApi' object has no attribute 'reroll_prefix' Traceback (most recent call last): File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/app/channel/chat_channel.py", line 146, in _handle reply = self._generate_reply(context) File "/app/channel/chat_channel.py", line 156, in _generate_reply e_context = PluginManager().emit_event( File "/app/plugins/plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, *args, **kwargs) File "/app/plugins/midjourney/midjourney.py", line 168, in on_handle_context return self.handle_command(e_context) File "/app/plugins/midjourney/midjourney.py", line 346, in handle_command return Info(get_help_text(self, verbose=True), e_context) File "/app/plugins/midjourney/ctext.py", line 381, in get_help_text help_text = self.mj.help_text() File "/app/plugins/midjourney/mjapi.py", line 320, in help_text help_text += f"(8) reroll重新生成:使用['{self.reroll_prefix[0]}' + 任务ID操作]即可重新绘制图片\n" AttributeError: '_mjApi' object has no attribute 'reroll_prefix'
在输入/mj a dog生成图片时报错
[INFO][2023-08-04 14:39:18][midjourney.py:832] - [MJ] /imagine prompt=a dog imgList=[] [ERROR][2023-08-04 14:39:46][mjapi.py:61] - HTTPSConnectionPool(host='midjourney-proxy-******.railway.app', port=8080): Max retries exceeded with url: /mj/submit/imagine (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f25013e9e70>, 'Connection to midjourney-proxy-******.railway.app timed out. (connect timeout=None)')) Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 714, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 403, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn conn.connect() File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f25013e9e70>, 'Connection to midjourney-proxy-******.railway.app timed out. (connect timeout=None)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 798, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='midjourney-proxy-******.railway.app', port=8080): Max retries exceeded with url: /mj/submit/imagine (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f25013e9e70>, 'Connection to midjourney-proxy-******.railway.app timed out. (connect timeout=None)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/plugins/midjourney/mjapi.py", line 58, in imagine res = requests.post(url, json=data, headers=self.headers) File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 115, in post return request("post", url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 553, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='midjourney-proxy-******.railway.app', port=8080): Max retries exceeded with url: /mj/submit/imagine (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f25013e9e70>, 'Connection to midjourney-proxy-******.railway.app timed out. (connect timeout=None)')) [INFO][2023-08-04 14:39:47][wechat_channel.py:189] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] ❌ 任务提交失败), receiver=@a633b1567733278781cee4a856c616d3251ff16b125a4c8624aba8eafcbf7e33
经常会提示超时,mj代理的项目日志有提示绘制进度
超时问题解决方案:
首先在discord输入/info查看你的Fast Time Remaining
快速出图时间,然后我了解到有些朋友的是某宝某鱼上租的共享账号,这类账号的特点问题就是人多使用,加上上面的快速出图时间可能用完了,造成了你提交的作图一直在排队中,针对这类问题的解决方案如下:首先将midjourney-proxy更新到最新版,然后在他的配置项里面有一个mj.queue.timeout-minutes
配置,即为任务超时时间,默认是五分钟,由于你的是多人使用的账号,所以次数可以延长些,改到十分钟甚至更长,具体自己试试,如果是专业版的话还可以修改mj.queue.core-size
和mj.queue.queue-size
并发数和等待队列长度,具体参考MidJourney订阅级别
请问"mj_api_secret": "", // midjourney-proxy的api请求头这一项参数在哪里
已经在railway部署了Midjourney-proxy
is_domain_name 不支持http地址
这个方法里面的正则支持https 导致http地址设置上去后就会为置空 mj_url设置不上去
大佬,除了基于midjourney-proxy项目,支持国内代理商API吗,比如https://doc.zxx.im/web/#/14/85
每次正常聊天的时候,也会触发midjourney插件回复
正常的聊天回复中,该插件也会回复一大段个人信息,插件的优先级我已经调整为-1了,按理说不应该有这种情况
[INFO][2023-09-03 11:49:08][midjourney.py:883]
请问翻译功能,能生效么?
就是那个提示词自动翻译,如果在midjourney-proxy中设置好了?通过作者的插件发送的中文提示词的话,会自动翻译么?
$mj_help指令之后报错
railway部署,求指教
插件扫描完成
发现新插件:
MidJourney_v1.0.46), receiver=@5d3e2bbc70e2a09a403d1390607189f48009e5de28c790a7a4f24932ed3ab810
[ERROR][2023-08-07 11:31:22][chat_channel.py:270] - Worker return exception: '@5d3e2bbc70e2a09a403d1390607189f48009e5de28c790a7a4f24932ed3ab810'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/channel/chat_channel.py", line 146, in _handle
reply = self._generate_reply(context)
File "/app/channel/chat_channel.py", line 156, in _generate_reply
e_context = PluginManager().emit_event(
File "/app/plugins/plugin_manager.py", line 189, in emit_event
instance.handlers[e_context.event](e_context, *args, **kwargs)
File "/app/plugins/midjourney/midjourney.py", line 167, in on_handle_context
self.userInfo = self.get_user_info(e_context)
File "/app/plugins/midjourney/midjourney.py", line 884, in get_user_info
if "mj_data" not in self.user_datas[uid] or (self.user_datas[uid]["mj_data"] and self.user_datas[uid]["mj_data"]["time"] != current_date):
KeyError: '@5d3e2bbc70e2a09a403d1390607189f48009e5de28c790a7a4f24932ed3ab810'
用户每日上限的逻辑似乎有点问题。
在垫图与混图时遇到异常,在midjourney-proxy中报错日志如下
2023-07-27 13:43:24.182 WARN 1 --- [ ReadingThread] c.g.n.m.wss.handle.ErrorMessageHandler : 检测到可能异常的信息: Invalid link
Could not validate this link. Please try again later.
footer: /imagine https://cdn.discordapp.com/ephemeral-attachments/1062880************/113399804************/0358489054808711.null https://cdn.discordapp.com/ephemeral-attachments/106288010************/1133998045************/0358489054808711.null --ar 1:1
2023-07-27 13:43:24.184 DEBUG 1 --- [ TaskQueue-3] c.g.n.m.support.TaskQueueHelper : task finished, id: 0358489054808711, status: FAILURE
大佬能加个联系方式么,有点问题请教下
请教一个问题,我全部都部署完了,也help成功,但是一直任务提交失败是什么原因昂?
作者大大,我想请教一下,我cow和[midjourney-proxy全部都部署完了,在微信里,各种help也都成功返回帮助,但是只要一提交任务,就反馈失败,代码为:[INFO][2023-09-13 23:51:04][midjourney.py:841] - [MJ] /imagine prompt=汽车 imgList=[]
[ERROR][2023-09-13 23:52:26][mjapi.py:62] - Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Kevin\Cow\plugins\midjourney\mjapi.py", line 60, in imagine
return self.subTip(res)
^^^^^^^^^^^^^^^^
File "C:\Kevin\Cow\plugins\midjourney\mjapi.py", line 34, in subTip
rj = res.json()
^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[INFO][2023-09-13 23:52:26][wechat_channel.py:189] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
❌ 任务提交失败), receiver=@4ffe62badde2a9871e75fd65cdd80af60ca631b1a49d78cd8d9db7c2fa061420
请问我这是哪儿出了问题?您可以给我一个联系方式么?如果方便的话,我不会乱打扰你的...感谢,感激不尽
我发现微信端生成的图片质量都不是高清的,有的甚至还有点糊,有没有好的解决思路呢
私聊窗口直接发送图片就会触发describe命令,可否增加一个开关或者也需要命令才能触发
因为我是直接用主账号作为机器人,有时候和朋友聊天发图也会直接触发这个命令,导致不太方便,可否设置一个开关或者也需要命令才能触发这个图生文功能
输入/mj 后无法正常画图,求大佬帮忙解决
报错信息如下
[ERROR][2023-08-08 13:41:41][mjapi.py:61] - 'code' Traceback (most recent call last): File "/root/chatgpt-on-wechat/plugins/midjourney-proxy-on-wechat/mjapi.py", line 59, in imagine return self.subTip(res) ^^^^^^^^^^^^^^^^ File "/root/chatgpt-on-wechat/plugins/midjourney-proxy-on-wechat/mjapi.py", line 36, in subTip code = rj["code"] ~~^^^^^^^^ KeyError: 'code' [INFO][2023-08-08 13:41:41][wechat_channel.py:189] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] ❌ 任务提交失败), receiver=@096846fccff003ca0997665904846baaf168f18eaf61a7dd1c787b754cb53251
midjourney-proxy使用Zeabur部署,环境变量已部署(已验证midjourney-proxy正常)
blend混图的使用逻辑可以简化成:混图命令 + 混图数量》发送相应数量的图片》开始混图。
现在的使用逻辑是:混图命令》发送多张图片》发送结束提示符触发混图任务。
是否可以简化成:混图命令 + 图片数量》发送相应数量的图片,数量达到后自动触发混图任务。
单个图的微调功能
消息回复会串台,能解决下么!!!
请求失败
多人同时请求时,任务超时
如题,2个用户同时请求时,会有一个用户的任务出现超时。
discord端两个任务都出图了,但微信端第二个任务会超时。
一直任务提交失败....
我现在chatgpt-on-wechat+midjourney-proxy+midjourney-proxy-on-wechat都安装成功了,输入mj_help也能正确返回,但是只要一画图,就提示:
[ERROR]
❌ 任务提交失败,错误代码是:[INFO][2023-09-14 21:30:58][midjourney.py:841] - [MJ] /imagine prompt=汽车 imgList=[]
[ERROR][2023-09-14 21:30:59][mjapi.py:62] - 'code'
Traceback (most recent call last):
File "C:\Kevin\Cow\plugins\midjourney\mjapi.py", line 60, in imagine
return self.subTip(res)
^^^^^^^^^^^^^^^^
File "C:\Kevin\Cow\plugins\midjourney\mjapi.py", line 37, in subTip
code = rj["code"]
~~^^^^^^^^
KeyError: 'code'
[INFO][2023-09-14 21:31:00][wechat_channel.py:189] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
❌ 任务提交失败), receiver=@63c8d98b4361299b6f777af878874045a5365251bf8521b4e3fba12a78accbf9
虽然提示是mjapi.py的问题,但我想是不是
"mj_url": "",
"mj_api_secret": "",
"discordapp_proxy": "",
设置的问题,除了第一个url我知道怎么填,剩下的俩我实在不知道了,四个晚上了,想哭,作者大大,能加你一个好友请教一下么?就差最后一步了,哭死QAQ
discord反代地址问题 以及 图片画质损耗问题
(1) discord反代地址问题
想问下大佬是否有别的https://cdn.discordapp.com/ 反代地址使图片可以不使用科学上网就可以访问
(2)图片画质损耗问题
通过chatgpt-on-wechat项目发送到微信的照片存在严重的画质损耗,个人推测是否是因为代码问题导致itchat未发送原图,想问问是否有解决方法
个人微信-垫图模式下收不到图片+个人企微下收不到返回图片
Railway部署 插件安装成功,但是一直任务提交失败,mid-proxy那边也未接收到任务请求
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
MJ服务设置成功
mj_url=http://127.0.0.1:8080
mj_api_secret=
discordapp_proxy=
这么配置的,报错任务执行失败,检查了Proxy 也在Proxy的网站上测试过了接口没问题
可否增加short url的功能?
现在自己反代出图地址,URL太长了,而且会暴露discord服务器和频道号。
可否适配short url的项目?比如https://github.com/xyTom/Url-Shorten-Worker
更新后 $mj_help 报错。
chatgpt-on-wechat | [ERROR][2023-08-05 01:48:20][chat_channel.py:270] - Worker return exception: '_mjApi' object has no attribute 'reroll_prefix'
chatgpt-on-wechat | Traceback (most recent call last):
chatgpt-on-wechat | File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
chatgpt-on-wechat | result = self.fn(*self.args, **self.kwargs)
chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 146, in _handle
chatgpt-on-wechat | reply = self._generate_reply(context)
chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 156, in _generate_reply
chatgpt-on-wechat | e_context = PluginManager().emit_event(
chatgpt-on-wechat | File "/app/plugins/plugin_manager.py", line 189, in emit_event
chatgpt-on-wechat | instance.handlers[e_context.event](e_context, *args, **kwargs)
chatgpt-on-wechat | File "/app/plugins/midjourney-proxy-on-wechat/midjourney.py", line 168, in on_handle_context
chatgpt-on-wechat | return self.handle_command(e_context)
chatgpt-on-wechat | File "/app/plugins/midjourney-proxy-on-wechat/midjourney.py", line 350, in handle_command
chatgpt-on-wechat | return Info(get_help_text(self, verbose=True, isadmin=True), e_context)
chatgpt-on-wechat | File "/app/plugins/midjourney-proxy-on-wechat/ctext.py", line 381, in get_help_text
chatgpt-on-wechat | help_text = self.mj.help_text()
chatgpt-on-wechat | File "/app/plugins/midjourney-proxy-on-wechat/mjapi.py", line 320, in help_text
chatgpt-on-wechat | help_text += f"(8) reroll重新生成:使用['{self.reroll_prefix[0]}' + 任务ID操作]即可重新绘制图片\n"
chatgpt-on-wechat | AttributeError: '_mjApi' object has no attribute 'reroll_prefix'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.