Git-HandClup / plugin_midjourney

一个Midjourneyd插件,支持imagine、upscale、variation、blend、describe五个基本命令
25 stars 5 forks source link

求救大佬,换了两个midjourney-proxy都出错,错误信息如下 #10

Open fromozuzhouzzz opened 9 months ago

fromozuzhouzzz commented 9 months ago

第一个 mj imagine a pig [ERROR][2023-11-06 14:08:28][wechatmp_channel.py:233] - [wechatmp] Fail to generate reply to user, msgId=24327835512442350, exception=can only concatenate str (not "NoneType") to str Traceback (most recent call last): File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 155, in _handle reply = self._generate_reply(context) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 165, in _generate_reply e_context = PluginManager().emit_event( File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, args, **kwargs) File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_midjourney/mj.py", line 75, in on_handle_context image = self._get_midjourney_task(imagine["result"], "image") File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_midjourney/mj.py", line 245, in _get_midjourney_task url = self.midjourneyProxy + "/task/" + id + "/fetch" TypeError: can only concatenate str (not "NoneType") to str

第二个 mj imagine a pig [INFO][2023-11-06 14:05:08][bridge.py:39] - create bot chatGPT for chat [ERROR][2023-11-06 14:05:08][wechatmp_channel.py:233] - [wechatmp] Fail to generate reply to user, msgId=24327834175894499, exception='result' Traceback (most recent call last): File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 155, in _handle reply = self._generate_reply(context) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 165, in _generate_reply e_context = PluginManager().emit_event( File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, args, **kwargs) File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_midjourney/mj.py", line 75, in on_handle_context image = self._get_midjourney_task(imagine["result"], "image") KeyError: 'result'

希望大佬帮忙看看什么原因,感谢感谢!