AbdullahAlfaraj / AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin

v1.30, API error: POST: http://127.0.0.1:7860/sdapi/v1/img2img {'error': 'AttributeError', 'detail': '', 'body': '', 'errors': "'NoneType' object has no attribute 'startswith'"}

Abierto
#335 2 comentarios 3 reacciones 0 asignados Ver en GitHub
bug-report
Lenguaje dominante
TypeScript
Estrellas
7.3k
Forks
526
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

API error: POST: http://127.0.0.1:7860/sdapi/v1/img2img {'error': 'AttributeError', 'detail': '', 'body': '', 'errors': "'NoneType' object has no attribute 'startswith'"}
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ F:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:94 │
│ in receive │
│ │
│ F:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:89 │
│ in receive_nowait │
└─────────────────────────────────────────────────────────────────────────────┘
WouldBlock

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ F:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base. │
│ py:78 in call_next │
│ │
│ F:\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:11 │
│ 4 in receive │
└─────────────────────────────────────────────────────────────────────────────┘
EndOfStream

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ F:\stable-diffusion-webui\modules\api\api.py:153 in exception_handling │
│ │
│ 152 │ │ try: │
│ > 153 │ │ │ return await call_next(request) │
│ 154 │ │ except Exception as e: │
│ │
│ ┌──────────────────────────────── locals ─────────────────────────────────┐ │
│ │ call_next = .call_next at │ │
│ │ 0x000001F788554550> │ │
│ │ e = AttributeError("'NoneType' object has no attribute │ │
│ │ 'startswith'") │ │
│ │ handle_exception = .handle_exception │ │
│ │ at 0x000001F79DCEEB00> │ │
│ │ request = │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│ │
│ F:\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base. │
│ py:84 in call_next │
│ │
│ ... 21 frames hidden ... │
│ │
│ F:\stable-diffusion-webui\modules\api\api.py:384 in │
│ │
│ 383 │ │ │ p = StableDiffusionProcessingImg2Img(sd_model=shared.sd_m │
│ > 384 │ │ │ p.init_images = [decode_base64_to_image(x) for x in init_ │
│ 385 │ │ │ p.scripts = script_runner │
│ │
│ ┌───────────────────── locals ──────────────────────┐ │
│ │ .0 = │ │
│ │ x = None │ │
│ └───────────────────────────────────────────────────┘ │
│ │
│ F:\stable-diffusion-webui\modules\api\api.py:65 in decode_base64_to_image │
│ │
│ 64 def decode_base64_to_image(encoding): │
│ > 65 │ if encoding.startswith("data:image/"): │
│ 66 │ │ encoding = encoding.split(";")[1].split(",")[1] │
│ │
│ ┌──── locals ─────┐ │
│ │ encoding = None │ │
│ └─────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
AttributeError: 'NoneType' object has no attribute 'startswith'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

this error is very offen on my side. the plugin can work, but I need to restart Photoshop after the error is reported

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.