Open Morroli opened 1 year ago
Same issue, did you find a fix?
It looks like the issue might be due to trying to generate with an empty initial image or an empty mask. Can you share a screenshot of the initial image and mask section when you get this error?
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 = <function │ │ │ │ BaseHTTPMiddleware.call..call_next at │ │
│ │ 0x000001F788554550> │ │
│ │ e = AttributeError("'NoneType' object has no attribute │ │
│ │ 'startswith'") │ │
│ │ handle_exception = <function api_middleware..handle_exception │ │
│ │ at 0x000001F79DCEEB00> │ │
│ │ request = <starlette.requests.Request object at │ │
│ │ 0x000001F82B1C4F70> │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
│ │
│ 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_toimage(x) for x in init │
│ 385 │ │ │ p.scripts = script_runner │
│ │
│ ┌───────────────────── locals ──────────────────────┐ │
│ │ .0 = <list_iterator object at 0x000001F82B1C51E0> │ │
│ │ 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