-
-
Notifications
You must be signed in to change notification settings - Fork 94
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] Error when aborting mid-generation with SSE enabled #81
Comments
Can confirm, that even when trying to reconnect, any responses from TabbyAPI seem to simply not work anymore and require a restart. |
The error should be fixed in c77259b. It was because of a logger issue. |
Did a clean install with latest commit, but still getting errors when aborting mid-generation. (Tested with SillyTavern and Mikupad)
|
Can confirm that on a69ee97, after aborting a gen in ST, any further gen attempts are just met with a code 200 OK without anything being generated. Until the server is restarted. |
This is fixed in 6b4f100. The issue was due to Uvicorn v0.28 changing a few things under the hood. See encode/uvicorn#2220 for the large error message. As for the generation being stuck afterwards, this is due to the semaphore getting locked up because of the exception that can't be caught. v0.27.1 has been pinned in the requirements until further notice. Please install that version. |
Thanks! Now it works fine. |
Update: The latest commits fix this issue on Uvicorn v0.28.0. As such, I've unpinned that dependency. |
Describe the bug
Getting errors when aborting mid-generation. I get this error on latest ST and another UI (Mikupad), both with SSE enabled. Works fine on Kobold Lite, but probably because it doesn't have SSE enabled. The error makes the console to hang up a little, so I have to restart the server to fix it.
To Reproduce
Steps to reproduce the behavior:
Logs
System info (Bugs without this information will go lower on our priority list!)
Additional context
The text was updated successfully, but these errors were encountered: