-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
[Bug]: h11._util.LocalProtocolError: Can't send data when our state is ERROR #10625
Comments
@hellangleZ, I've made a pull request that implements your feedback but inside |
I tried using the method you changed api.py, but it didn't work and the error was still reported.The following is the complete error. This results in multiple iterations of loading the model, but eventually it can be used (or not, and needs to be reopened).
|
@hellangleZ @shiertier Tried this fix as well, and it didn't solve the issue. @AUTOMATIC1111 Any ideas here? We are really stuck. |
This problem still exists LocalProtocolError: Can't send data when our state is ERROR ERROR: Exception in ASGI application |
Your problem log not replated to same issue, seems to you api call a wrong prompts... |
Same problem here. |
I get this if I run in API mode. Disabling API while doing what you need to (fx updating extensions) will fix it. But I had it working so I could update without disabling the API, so I have no idea what went wrong here. Developer needs to fix his update functions, cause it must work no matter your configuration |
pip install fastapi[all] --force-reinstall |
@AUTOMATIC1111 We authored @montyanderson this commit based on a user's suggestion. It doesn't not fix the listed issue. Upgrading to any Automatic1111 version past January introduces this error, which occurs randomly ~3% of the time. Per a discussion with @vladmandic the Gunicorn timeout settings don't get properly passed through via this method so that commit does nothing. Any ideas? |
@AUTOMATIC1111 Can you reopen this issue? |
still happening on my end aswell. |
I think you should add --nowebui when launch. |
If someone is having this bug:
I did this between restarts thinking a single plugin was the culprit, dunno if restarts are necessary. I enable all the plugins I had enabled (taking a screenshot to remember which ones), turns out just disabling/enabling fixed it. |
I'm using A1111 with a discord bot. I don't have any plugins installed at all, and I could easily trigger this by queuing api-requests with different checkpoints.
Seems to've solved it, more specifically I think it's the nowebui flag that @tangjicheng46 mentioned that solved it for me. Queued 4 requests with different checkpoints without issue. |
Having this issue as well when using this software to generate pictures to send to another site. I've had a single instance where it managed to generate 100+ images without issue, and I've had instances where the very first image caused the issue, interrupting the process and necessitating starting the process all over again. Gonna try some of the fixes mentioned here but I'm not hoping for too much... |
We fixed by moving our app from Node to Go.
…On Wed, Jan 17, 2024, 8:25 AM Hulkninja ***@***.***> wrote:
Having this issue as well when using this software to generate pictures to
send to another site.
Encountering sometimes results in the process freezing until I select the
cmd window and press a key on my keyboard.
I've had a single instance where it managed to generate 100+ images
without issue, and I've had instances where the very first image caused the
issue, interrupting the process and necessitating starting the process all
over again.
Gonna try some of the fixes mentioned here but I'm not hoping for too
much...
—
Reply to this email directly, view it on GitHub
<#10625 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAO4L5IZHR2LFBS6TPGTY3YO7GLHAVCNFSM6AAAAAAYKD2VSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVHAYDONRUGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I had the "Can't send data when our state is ERROR" error on any version for a long time, if doing intense calculations in extensions, even if those are not using the api. Seems the api does not like those calculations, because it would block it to answer requests.
|
Is there an existing issue for this?
What happened?
It very strong that when use webui , it could not see the problem, but when use API, it usually release this issue
Exception in callback H11Protocol.timeout_keep_alive_handler()
handle: <TimerHandle when=30411.431255625 H11Protocol.timeout_keep_alive_handler()>
File "/aml/stable-diffusion-webui/venv/lib/python3.10/site-packages/h11/_connection.py", line 483, in send_with_data_passthrough
raise LocalProtocolError("Can't send data when our state is ERROR")
Steps to reproduce the problem
Just common call the API
What should have happened?
It is very stange, sometimes it will happen, but in some times , the same prompt, it could work good
Commit where the problem happens
Common call api
What platforms do you use to access the UI ?
Linux
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
List of extensions
No extension
Console logs
Additional information
I just check a lot of issue, but not see same as mine, any expert please help me to fix the issue, Thanks
The text was updated successfully, but these errors were encountered: