stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Error when try to generate
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I download SD follow the intruction from https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon. Run the server, click the generate and got the error. I try to solve the problem but nothing can't help me instead upgrade fastapi and others to older versions.
Steps to reproduce the problem
- I follow the inruction from this https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon
- Press Generate
- Error
What should have happened?
Just generate me the image
Commit where the problem happens
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
What platforms do you use to access the UI ?
MacOS
What browsers do you use to access the UI ?
Google Chrome, Apple Safari
Command Line Arguments
Webui-user is commented
List of extensions
Default extentions from git
Console logs
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/all/Library/Python/3.8/lib/python/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/all/Library/Python/3.8/lib/python/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/fastapi/applications.py", line 271, in __call__
await super().__call__(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/gzip.py", line 44, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/Users/all/Library/Python/3.8/lib/python/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/routing.py", line 706, in __call__
await route.handle(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/Users/all/Library/Python/3.8/lib/python/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "/Users/all/Library/Python/3.8/lib/python/site-packages/gradio/routes.py", line 286, in file
raise ValueError(
ValueError: File cannot be fetched: /Users/all/0sd/. All files must contained within the Gradio python app working directory, or be a temp file created by the Gradio python app.
Additional information
No response
same as @CAC228 metioned
This is not a bug, it's a security feature of Gradio. Add the folder to the --gradio-allowed-path
cmdline arg.
--gradio-allowed-path /Users/all/0sd/