BlafKing / sd-civitai-browser-plus

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.
GNU Affero General Public License v3.0
309 stars 53 forks source link

[Bug]: The Civit-API has timed out #125

Closed vorstcavry closed 10 months ago

vorstcavry commented 10 months ago

Describe the bug.

image The Civit-API has timed out

Steps to reproduce the problem.

this issue arises when opening stable diffusion

Expected behavior

The Civit-API has timed out

System info

Console logs

Python 3.9.16 | packaged by conda-forge | (main, Feb  1 2023, 21:39:03) 
[GCC 11.3.0]
Version: v1.6.1
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments: --listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers --ngrok 2Pru5tTivWjXNLotYH6jsGqJZRN_4MpnwGEaAEVKTgHJMt77t
ngrok authtoken detected, trying to connect...
ngrok connected to localhost:7860! URL: https://c75a-3-136-172-40.ngrok-free.app
You can use this link after the launch is complete.
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[-] ADetailer initialized. version: 23.11.1, num models: 9
CivitAI Browser+: Aria2 RPC started
Model Downloader v1.0.8
Checking Directories...
all Directories already Created.
2023-12-06 17:08:30,432 - ControlNet - INFO - ControlNet v1.1.420
ControlNet preprocessor location: /home/studio-lab-user/content/sdw/extensions/sd-webui-controlnet/annotator/downloads
2023-12-06 17:08:30,553 - ControlNet - INFO - ControlNet v1.1.420
Loading weights [59ffe2243a] from /home/studio-lab-user/content/sdw/models/Stable-diffusion/ChilloutMix-ni-fp16.safetensors
/home/studio-lab-user/content/sdw/extensions/additional-networks-s/scripts/metadata_editor.py:343: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
/home/studio-lab-user/content/sdw/extensions/additional-networks-s/scripts/metadata_editor.py:423: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cover_image = gr.Image(label="Cover image", elem_id="additional_networks_cover_image", source="upload", interactive=can_edit, type="pil", image_mode="RGBA").style(height=480)
/home/studio-lab-user/content/sdw/extensions/huggingface/scripts/huggingface.py:73: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=True):
/home/studio-lab-user/content/sdw/extensions/huggingface/scripts/huggingface.py:79: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=True):
/home/studio-lab-user/content/sdw/extensions/huggingface/scripts/huggingface.py:93: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=True):
/home/studio-lab-user/content/sdw/extensions/huggingface/scripts/huggingface.py:100: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=True):
/home/studio-lab-user/content/sdw/extensions/images-browser/scripts/images_history.py:581: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  history_gallery = gr.Gallery(show_label=False, elem_id=tabname + "_images_history_gallery").style(grid=opts.images_history_page_columns)
/home/studio-lab-user/content/sdw/extensions/images-browser/scripts/images_history.py:581: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  history_gallery = gr.Gallery(show_label=False, elem_id=tabname + "_images_history_gallery").style(grid=opts.images_history_page_columns)
Creating model from config: /home/studio-lab-user/content/sdw/configs/v1-inference.yaml
/home/studio-lab-user/content/sdw/extensions/sd-model-downloader/scripts/model-downloader.py:309: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  image.style(width=156, height=234)
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
[HF Out] No HF Token provided. HF Out will be disabled.
Startup time: 14.0s (prepare environment: 2.8s, import torch: 2.7s, import gradio: 1.2s, setup paths: 1.8s, initialize shared: 0.2s, other imports: 0.9s, load scripts: 2.1s, create ui: 1.8s, gradio launch: 0.5s).
Applying attention optimization: xformers... done.
Model loaded in 7.6s (load weights from disk: 1.4s, create model: 0.8s, apply weights to model: 4.7s, calculate empty prompt: 0.6s).
CivitAI Browser+: The CivitAI servers are currently offline. Please try again later.
CivitAI Browser+: Updated settings to: /home/studio-lab-user/content/sdw/ui-config.json
CivitAI Browser+: The CivitAI servers are currently offline. Please try again later.

Additional information

No response

BlafKing commented 10 months ago

This is not an issue caused by the extension, as the logs and webUI show, the servers are currently down. It will be functional again when CivitAI fixes their servers.

You can try visiting civitai.com to see if the site is back up again.

vorstcavry commented 10 months ago

can you make other alternatives if for example the link from civitai is experiencing page maintenance, for example like this from

BlafKing commented 10 months ago

can you make other alternatives if for example the link from civitai is experiencing page maintenance, for example like this from

That would be out of the scope for this extension, since everything is based around the returns of the CivitAI API It's not possible to easily change this for another API.

The Huggingface and Prompthero API also don't seem to support a lot of the features required by this extension so unfortunately it's not possible to implement different services.