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'"}

Ouverte
#335 2 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
bug-report
Langage dominant
TypeScript
Étoiles
7.3k
Forks
526
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.