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]: Model Update attribute Error #214

Closed RedFoxNightfox closed 7 months ago

RedFoxNightfox commented 7 months ago

Describe the bug.

updating installed models is producing errors and not functional

Steps to reproduce the problem.

  1. Go to update model and tags information
  2. Press check mark for installed items
  3. Press update model and tags information
  4. error.

Expected behavior

should get info

System info

Console logs

Traceback (most recent call last):
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "M:\Stable-Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "M:\Stable-Diffusion\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_file_manage.py", line 1022, in file_scan
    preview_html = _api.update_model_info(None, model_versions.get('value'), True, id_value, api_response)
  File "M:\Stable-Diffusion\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 804, in update_model_info
    prompt, prompt_dict = image_url_to_promptInfo(image_url)
  File "M:\Stable-Diffusion\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 653, in image_url_to_promptInfo
    prompt_dict = parse_generation_parameters(prompt)
  File "M:\Stable-Diffusion\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 229, in parse_generation_parameters
    *lines, lastline = x.strip().split("\n")
AttributeError: 'NoneType' object has no attribute 'strip'

Additional information

image

RedFoxNightfox commented 7 months ago

seems it was an error on Civitai's end, after trying it several times, it started working again.