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

Open
#335 2 comments 3 reactions 0 assignees View on GitHub
bug-report
Dominant language
TypeScript
Stars
7.3k
Forks
526
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.