yokonsan / midjourney-api

midjourney in discord api.
767 stars 174 forks source link

🐛 除了imagine,其他接口调用都无效 #83

Open alphapro-pro opened 10 months ago

alphapro-pro commented 10 months ago

问题简述

先使用imagine生成图片后。继续使用其他的upscale、variation没有反应。debug日志有两条,discord对应频道里没有出现新的job

复现方式

imagine生成图片的最终日志 2023-09-01 07:28:34 | DEBUG | 418586-140670442070016 | "/root/midjourney-api/util/fetch.py:47":fetch - Fetch: http://0.0.0.0:8062/v1/api/callback, {'json': {'type': 'end', 'id': 1147070480524787734, 'content': '<#2109205915#>Oriental girl with double ponytail hairstyle --v 5.2 - <@1040092568773480579> (fast)', 'attachments': [{'filename': 'juliotopel_2109205915Oriental_girl_with_double_ponytail_hairsty_8b831f86-c093-4f17-8570-2159888840aa.png', 'id': 1147070479971135508, 'proxy_url': 'https://media.discordapp.net/attachments/1083315165153460226/1147070479971135508/juliotopel_2109205915Oriental_girl_with_double_ponytail_hairsty_8b831f86-c093-4f17-8570-2159888840aa.png', 'size': 6487318, 'url': 'https://cdn.discordapp.com/attachments/1083315165153460226/1147070479971135508/juliotopel_2109205915Oriental_girl_with_double_ponytail_hairsty_8b831f86-c093-4f17-8570-2159888840aa.png', 'spoiler': False, 'height': 2048, 'width': 2048, 'content_type': 'image/png'}], 'embeds': [], 'trigger_id': '2109205915'}}

调用upscale: curl -X 'POST' \ 'http://x.x.x.x:8062/v1/api/trigger/upscale' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "index": 3, "msg_id": "1147070479971135508", "msg_hash": "8b831f86-c093-4f17-8570-2159888840aa", "trigger_id": "2109205915" }'

回调日志: 2023-09-01 07:33:29 | DEBUG | 419638-140557125828608 | "/root/midjourney-api/util/_queue.py:60":_exec - Task[2109205915] start execution: upscale((), {'index': 3, 'msg_id': '1147070479971135508', 'msg_hash': '8b831f86-c093-4f17-8570-2159888840aa', 'trigger_id': '2109205915'}) 2023-09-01 07:33:29 | DEBUG | 419638-140557125828608 | "/root/midjourney-api/util/fetch.py:47":fetch - Fetch: https://discord.com/api/v9/interactions, {'data': '{"type": 3, "application_id": "936929561302675456", "guild_id": "1083315162318127114", "channel_id": "1083315165153460226", "session_id": "cb06f61453064c0983f2adae2a88c223", "data": {"component_type": 2, "custom_id": "MJ::JOB::upsample::3::8b831f86-c093-4f17-8570-2159888840aa"}, "message_flags": 0, "message_id": "1147070479971135508"}'}

环境信息

额外信息

No response

一点点的自我检查

dylanzan commented 9 months ago

这个是因为队列太小,err的任务一直阻塞在队列里,新的任务无法加入队列导致

welcomemonth commented 9 months ago

遇到了相同的问题,请问你解决了吗

welcomemonth commented 9 months ago

这个是因为队列太小,err的任务一直阻塞在队列里,新的任务无法加入队列导致

请问这个怎么去解决呢

dylanzan commented 9 months ago

扩大队列,并清理未得到正确响应还在队列的任务发自我的 iPhone在 2023年10月12日,20:29,zhengyu zhang @.***> 写道:

这个是因为队列太小,err的任务一直阻塞在队列里,新的任务无法加入队列导致

请问这个怎么去解决呢

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

31702160136 commented 6 months ago

遇到了相同的问题,{'data': '{"type": 3, "application_id": "936929561302675456", "guild_id": "1192426597224026232", "channel_id": "1192426597844795506", "session_id": "cb06f61453064c0983f2adae2a88c223", "data": {"component_type": 2, "custom_id": "MJ::JOB::upsample::4::6ade7ba9-6352-4897-9f5a-e5f2ad023ed9"}, "message_flags": 0, "message_id": "1193495361571004496"}'} 图片无法进行upscale,只能imagine

31702160136 commented 6 months ago

扩大队列,并清理未得到正确响应还在队列的任务发自我的 iPhone在 2023年10月12日,20:29,zhengyu zhang @.> 写道: 这个是因为队列太小,err的任务一直阻塞在队列里,新的任务无法加入队列导致 请问这个怎么去解决呢 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

不是队列的问题,队列是空的,也无法执行

MaHuanAAA commented 2 months ago

到现在还没解决,是不是没戏了,我也遇到了,只能 /imagine

31702160136 commented 2 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。