Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
alphapro-pro opened this issue Sep 1, 2023 · 8 comments
Open
3 tasks done

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

alphapro-pro opened this issue Sep 1, 2023 · 8 comments

Comments

@alphapro-pro
Copy link

问题简述

先使用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"}'}

环境信息

  • OS: ubuntu 22.04
  • Python: Python 3.10.12
  • Others: 其它信息

额外信息

No response

一点点的自我检查

  • 充分阅读 README.md,特别是与本 issue 相关的部分
  • 如果是网络问题,已经检查网络连接、设置是否正常,并经过充分测试认为这是项目本身的问题
  • 本 issue 在 issues 中并没有重复问题
@dylanzan
Copy link

dylanzan commented Oct 5, 2023

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

@welcomemonth
Copy link

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

@welcomemonth
Copy link

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

请问这个怎么去解决呢

@dylanzan
Copy link

dylanzan commented Oct 12, 2023 via email

@31702160136
Copy link

遇到了相同的问题,{'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
Copy link

扩大队列,并清理未得到正确响应还在队列的任务发自我的 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
Copy link

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

@31702160136
Copy link

31702160136 commented Apr 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants