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

Đang mở
#335 2 bình luận 3 reaction 0 người được giao Xem trên GitHub
bug-report
Ngôn ngữ chính
TypeScript
Star
7.3k
Fork
526
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.