Upon commiting to the latest release today, the console has been throwing a lot of errors when trying to access the UI in the browser (not when I launch web-ui.bat). Here is a preview of what it is:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 152, in jsonable_encoder
data = dict(obj)
TypeError: 'coroutine' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 157, in jsonable_encoder
data = vars(obj)
TypeError: vars() argument must have __dict__ attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in __call__
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 43, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 75, in __call__
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
raise e
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 275, in handle
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 65, in app
response = await func(request)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 249, in app
content = await serialize_response(
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 149, in serialize_response
return jsonable_encoder(response_content)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 160, in jsonable_encoder
raise ValueError(errors)
ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 152, in jsonable_encoder
data = dict(obj)
TypeError: 'coroutine' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 157, in jsonable_encoder
data = vars(obj)
TypeError: vars() argument must have __dict__ attribute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in __call__
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 43, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 75, in __call__
raise exc
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
raise e
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 275, in handle
await self.app(scope, receive, send)
File "C:\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 65, in app
response = await func(request)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 249, in app
content = await serialize_response(
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 149, in serialize_response
return jsonable_encoder(response_content)
File "C:\stable-diffusion-webui\venv\lib\site-packages\fastapi\encoders.py", line 160, in jsonable_encoder
raise ValueError(errors)
ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]
There's quite a lot more of similar looking lines. I have looked around other issues and people brought up extensions as being part of the problem but I just have the base ones installed and I even tried to launch it without them to see if it was related and it didn't change anything.
I have to point out the UI and pic generation itself seems to still be working, although it keeps throwing errors when you interact with it.
Steps to reproduce the problem
Run web-ui.bat (nothing wrong so far)
Access the UI inside the browser
As soon as I do the console throws a bunch of errors
What should have happened?
No errors, different behavior than before.
Commit where the problem happens
e33cace
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
Additional information, context and logs
No response
Okay, I seem to have fixed it by deleting everything save for the outputs and model folders, reinstalled and redownloaded all the dependancies again. I'm sorry it didn't work out for you, hopefully my solution can help you as well as others. Also don't forget to also save your styles.csv if you're gonna wipe everything, I'm pretty sure this isn't the only thing you want to backup before proceeding but seems good enough for me at least. Good luck.
This is probably the problem. I have no idea what this means is wrong but they seem to. lol
tiangolo/fastapi#4834
I fixed the problem by simplely downgrade the gradio version from 3.16.2 to 3.15.0 manually. and all warning problems go away.
This fixed the spam. Thankyou
In my case I had old version of tag autocomplete installed in scripts. Might help someone else
Thank you, this fixed it for me. Deleted tagAutocomplete.js in the javascript folder, tag_autocomplete_helper.py in the scripts folder, and the entire tag folder.
I fixed the problem by simplely downgrade the gradio version from 3.16.2 to 3.15.0 manually. and all warning problems go away.
How to go about this?
I fixed the problem by simplely downgrade the gradio version from 3.16.2 to 3.15.0 manually. and all warning problems go away.
How to go about this?
Delete gradio folders inside venv folder.
Open requirements.txt and requirements_versions.txt; replace gradio with gradio==3.15.0.
Run the web ui as usual