stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: /docs page isn't showing anymore?

Open hubcart opened this issue 2 years ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

the api docs page isn't showing as of today. the api still works but the doc page come up {"detail":"Not Found"}

Steps to reproduce the problem

  1. Go to /docs

What should have happened?

the swagger page from fast api show

Commit where the problem happens

latest

What platforms do you use to access the UI ?

Linux, Other/Cloud

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--api --listen --enable-insecure-extension-access --disable-safe-unpickle --no-half

List of extensions

rembg only right now

Console logs

404 error

Additional information

was working fine. not sure if its a fast api issue

hubcart avatar May 05 '23 07:05 hubcart

I have the same problem after an update. In addition, the API does not work with webui at all. Need to use --nowebui for the api to work, however /docs is still missing

Axelleromar avatar May 05 '23 12:05 Axelleromar

same issue here, my api is working fine though

smoo7h avatar May 05 '23 15:05 smoo7h

I went back to and old commit to get a working version. just made me feel more comfortable being able to see the /docs page (even though api was working). I never did this before so I asked chatgpt how and it was pretty simple. here are the steps to revert back to a working version. you can probably get a more recent that is working, I just chose two weeks back.

  1. Clone the repo (if you haven't already) git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

  2. Go to the directory cd stable-diffusion-webui

  3. Checkout the past version git checkout 6fbd85dd0c0dffc06560bff91f4c4b65e441ca5f

  4. Create Branch. git checkout -b 6fbd85dd0c0dffc06560bff91f4c4b65e441ca5f

After this then you you do your normal steps.

For me on linux (for a new server and install) I activated pytorch and conda, made all my initial pip, virtualenv, cmake, etc installs, then did the above steps. The I activated my virtual env and started a screen, then launched the app.

I hope that helps.

EDIT: Installing Extensions broke it again, I'm not sure how to fix that part.

hubcart avatar May 05 '23 17:05 hubcart

I encountered the same problem

Emiya-wkq avatar May 06 '23 08:05 Emiya-wkq

Based on quick git bisect, it is this commit that has broken it: 101a18fc8466577501b57eac6a4b5d07351c9ec6. The commit before that (22bcc7be428c94e9408f589966c2040187245d81) still works.

kyberias avatar May 06 '23 09:05 kyberias

Seems it was removed by gradio so they can push their new API which only works with python:

https://github.com/gradio-app/gradio/issues/4054

JumpingCoconut avatar May 09 '23 08:05 JumpingCoconut

Can someone just point me to the docs without me having to install an older version and revert it back later on? I just want to know a simple thing: Is it possible to get "live preview" of the image before it's done generating when using the API, or do we only get the finished product?

monsieurpooh avatar May 10 '23 06:05 monsieurpooh

I think this is what you want

Screenshot 2023-05-12 095814

hubcart avatar May 12 '23 16:05 hubcart

should be fix in 1.2.0 reopen issue if it's not

w-e-w avatar May 13 '23 17:05 w-e-w