vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.59k stars 408 forks source link

[Issue]: API Docs not working #1748

Closed DevilsCrypto closed 1 year ago

DevilsCrypto commented 1 year ago

Issue Description

I have waited some releases, but i can't get the API docs working. Did a clean install several times including fresh virtual environments, but after starting the /docs url shows an error: Internal Server Error /openapi.json. When the docs where default enabled before the --docs argument they worked.

Automatic has been started as follows: ./webui.sh --listen --models-dir ../../models --port 8888 --allow-code --insecure --docs

error_docs

Version Platform Description

Using Ubuntu 20.04.6 LTS on LambdaLabs

Acknowledgements

vladmandic commented 1 year ago

i just tried with just --docs and with full list of args i cannot reproduce, /docs url is loading fine

DevilsCrypto commented 1 year ago

Thanks for the fast response, it looks like it's being cause by some script that adds api endpoints. Will check in there whats causing the exact issue. Thanks for the fast reaction!!

vladmandic commented 1 year ago

scripts/extensions are allowed to add api endpoints and that works if done correctly. i wonder what that extension is doing that its breaking core functionality.