capslock / stable-diffusion-bot

Telegram bot for Stable Diffusion, written in Rust.
https://capslock.github.io/stable-diffusion-bot/
MIT License
14 stars 4 forks source link

tg bot stuck after pressing rerun on old picture #26

Closed inqoperated closed 11 months ago

inqoperated commented 11 months ago

stable-diffusion-bot[41906]: An error has occurred in the dispatcher: A Telegram's error: Unknown error: "Bad Request: query is too old and response timeout expired or query ID is invalid"

                                              Caused by:
                                                  Unknown error: "Bad Request: query is too old and response timeout expired or query ID is invalid"

then the bot does not generate images anymore

capslock commented 11 months ago

This error should generally not happen just when pressing rerun on an old image. It generally indicates that the bot took too long to respond to the button press. The bot will process messages for a given user sequentially, so this could mean that the bot was busy waiting for a previous image to finish generating when a new request was made.

I can reproduce this by spamming the rerun button on an image, but the bot continues to work even after generating the error.

Are you able to reproduce this, or was it a one-off error?

inqoperated commented 11 months ago

maybe coincedence there. i just have noticed the bot is stuck sometimes. i will try to figure it out once i have my new system running

capslock commented 11 months ago

This may be related to https://github.com/capslock/stable-diffusion-bot/issues/28, as prior to the fix there comfyui-api re-used client id's and I observed it getting stuck because of that.

capslock commented 11 months ago

I'm assuming this is fixed with the fix to https://github.com/capslock/stable-diffusion-bot/issues/28 / https://github.com/capslock/stable-diffusion-bot/commit/97fa2f35cd52f64ecf7c2d5053d7516ce85c6af1. Please re-open if you still see the issue.