Code Monkey home page Code Monkey logo

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代理的项目日志有提示绘制进度

image
image

超时问题解决方案:
首先在discord输入/info查看你的Fast Time Remaining快速出图时间,然后我了解到有些朋友的是某宝某鱼上租的共享账号,这类账号的特点问题就是人多使用,加上上面的快速出图时间可能用完了,造成了你提交的作图一直在排队中,针对这类问题的解决方案如下:首先将midjourney-proxy更新到最新版,然后在他的配置项里面有一个mj.queue.timeout-minutes配置,即为任务超时时间,默认是五分钟,由于你的是多人使用的账号,所以次数可以延长些,改到十分钟甚至更长,具体自己试试,如果是专业版的话还可以修改mj.queue.core-sizemj.queue.queue-size并发数和等待队列长度,具体参考MidJourney订阅级别

请问翻译功能,能生效么?

就是那个提示词自动翻译,如果在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'

用户每日上限的逻辑似乎有点问题。

用户达到图片生成限制后,正常发文字也会提示”次数用完“。
把mj插件的priority设置成-1也无济于事。
应该只有触发词触发作图的prompt受到限制,不含触发词的prompt应该跳过啊。

39fa4646ae26229f6791b9c2c44ea61

在垫图与混图时遇到异常,在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
请问我这是哪儿出了问题?您可以给我一个联系方式么?如果方便的话,我不会乱打扰你的...感谢,感激不尽

输入/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正常)

请求失败

前两天能正常使用,昨晚开始报错请求失败,用/f命令能正常查询并回复图片
1689825603514

多人同时请求时,任务超时

如题,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

更新后 $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 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.