AbdullahAlfaraj / AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin
API error: 422 response from StableDiffusion API for txt2img/img2img
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.3k
- Forks
- 526
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Photoshop plugin version: 1.4.1
A1111 extension: [6f6d4907](https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/commit/6f6d4907adf0b6a6e562d084238f02ed6b7503c1)
I'm getting 422 http responses from A1111 SD API when I generate txt2img (or any mode) from the photoshop plugin.
For example with api logging turned on, I see:
```
2024-05-15T23:07:20.995698136Z API 2024-05-15 23:07:20.785580 422 http/1.1 POST /sdapi/v1/txt2img {ip address removed} 0.0036
```
I can curl and post to the API manually, e.g. with something like:
```
curl -X 'POST' 'https://$WAN_URL/sdapi/v1/txt2img' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{
"prompt": "a bowl of cherries",
"negative_prompt": "",
"styles": [
"string"
],
"seed": -1,
"subseed": -1,
"subseed_strength": 0,
"seed_resize_from_h": -1,
"seed_resize_from_w": -1,
"sampler_name": "DPM++ 2M",
"scheduler": "karras",
"batch_size": 1,
"n_iter": 1,
"steps": 35,
"cfg_scale": 7,
"width": 1024,
"height": 1024
}'
```
That works from the same network as my SD plugin.
So I enabled A1111 api logging with `--api-log` and I'm getting `422` errors
```
2024-05-15T23:06:21.986035804Z API 2024-05-15 23:06:21.674901 200 http/1.1 POST /sdapi/v1/txt2img {ip address removed} 5.0419
2024-05-15T23:07:20.995638846Z API 2024-05-15 23:07:20.541497 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0078
2024-05-15T23:07:20.995689196Z API 2024-05-15 23:07:20.648687 200 http/1.1 GET /sdapi/auto-photoshop-sd/heartbeat {ip address removed} 0.0012
2024-05-15T23:07:20.995698136Z API 2024-05-15 23:07:20.785580 422 http/1.1 POST /sdapi/v1/txt2img {ip address removed} 0.0036
2024-05-15T23:07:57.001508875Z API 2024-05-15 23:07:56.204841 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0045
2024-05-15T23:07:57.001538025Z API 2024-05-15 23:07:56.385963 200 http/1.1 GET /sdapi/auto-photoshop-sd/heartbeat {ip address removed} 0.0009
2024-05-15T23:07:57.001543065Z API 2024-05-15 23:07:56.520364 422 http/1.1 POST /sdapi/v1/txt2img {ip address removed} 0.002
2024-05-15T23:11:42.037741384Z API 2024-05-15 23:11:41.977750 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0081
2024-05-15T23:11:43.038142963Z API 2024-05-15 23:11:42.088487 200 http/1.1 GET /sdapi/auto-photoshop-sd/heartbeat {ip address removed} 0.0011
2024-05-15T23:11:43.038165833Z API 2024-05-15 23:11:42.229932 422 http/1.1 POST /sdapi/v1/txt2img {ip address removed} 0.0039
2024-05-15T23:11:52.039518500Z API 2024-05-15 23:11:51.359636 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0082
2024-05-15T23:11:52.039546790Z API 2024-05-15 23:11:51.472379 200 http/1.1 GET /sdapi/auto-photoshop-sd/heartbeat {ip address removed} 0.001
2024-05-15T23:11:52.039551070Z API 2024-05-15 23:11:51.631192 200 http/1.1 GET /sdapi/v1/samplers {ip address removed} 0.0052
2024-05-15T23:11:52.039554440Z API 2024-05-15 23:11:51.771879 200 http/1.1 GET /sdapi/v1/sd-models {ip address removed} 0.0035
2024-05-15T23:11:52.039556930Z API 2024-05-15 23:11:51.900463 200 http/1.1 GET /sdapi/v1/loras {ip address removed} 0.0009
2024-05-15T23:11:52.039562270Z API 2024-05-15 23:11:52.009602 200 http/1.1 GET /sdapi/v1/embeddings {ip address removed} 0.002
2024-05-15T23:11:53.039926799Z API 2024-05-15 23:11:52.151993 200 http/1.1 GET /sdapi/v1/upscalers {ip address removed} 0.0042
2024-05-15T23:11:53.039968289Z API 2024-05-15 23:11:52.270822 200 http/1.1 POST /sdapi/v1/options {ip address removed} 0.0078
2024-05-15T23:11:53.039970529Z API 2024-05-15 23:11:52.388432 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0083
2024-05-15T23:11:53.039972659Z API 2024-05-15 23:11:52.495166 200 http/1.1 GET /sdapi/v1/upscalers {ip address removed} 0.0038
2024-05-15T23:11:54.040059619Z preprocessor_list: ['none', 'ip-adapter-auto', 'tile_resample', 'softedge_pidinet', 'seg_ofade20k', 'scribble_pidinet', 'revision_clipvision', 'reference_only', 'recolor_luminance', 'openpose_full', 'normal_bae', 'mlsd', 'lineart_standard (from white bg & black line)', 'ip-adapter_clip_h', 'inpaint_only', 'depth_midas', 'canny', 'invert (from white bg & black line)', 'tile_colorfix+sharp', 'tile_colorfix', 'threshold', 't2ia_style_clipvision', 't2ia_sketch_pidi', 't2ia_color_grid', 'softedge_teed', 'softedge_pidisafe', 'softedge_hedsafe', 'softedge_hed', 'shuffle', 'seg_ufade20k', 'seg_ofcoco', 'seg_anime_face', 'scribble_xdog', 'scribble_hed', 'revision_ignore_prompt', 'reference_adain+attn', 'reference_adain', 'recolor_intensity', 'openpose_hand', 'openpose_faceonly', 'openpose_face', 'openpose', 'normal_midas', 'normal_dsine', 'mediapipe_face', 'lineart_realistic', 'lineart_coarse', 'lineart_anime_denoise', 'lineart_anime', 'ip-adapter_pulid', 'ip-adapter_face_id_plus', 'ip-adapter_face_id', 'ip-adapter_clip_sdxl_plus_vith', 'ip-adapter_clip_g', 'instant_id_face_keypoints', 'instant_id_face_embedding', 'inpaint_only+lama', 'inpaint_global_harmonious', 'facexlib', 'dw_openpose_full', 'depth_zoe', 'depth_leres++', 'depth_leres', 'depth_hand_refiner', 'depth_anything', 'densepose_parula (black bg & blue torso)', 'densepose (pruple bg & purple torso)', 'blur_gaussian', 'animal_openpose']
2024-05-15T23:11:54.040109119Z model_list: ['control_canny-fp16 [e3fe7712]', 'control_openpose-fp16 [9ca67cc5]', 't2iadapter_canny-fp16 [f2e7f7cd]', 't2iadapter_openpose-fp16 [4286314e]']
2024-05-15T23:11:54.040112309Z API 2024-05-15 23:11:53.097881 200 http/1.1 POST /sdapi/auto-photoshop-sd/controlnet/filter {ip address removed} 0.0029
2024-05-15T23:11:54.040114379Z sd_vae_dict: ['Automatic', 'None', 'vae-ft-ema-560000-ema-pruned.safetensors', 'vae-ft-mse-840000-ema-pruned.safetensors', 'sdxl_vae.safetensors']
2024-05-15T23:11:54.040115649Z API 2024-05-15 23:11:53.216430 200 http/1.1 GET /sdapi/auto-photoshop-sd/vae/list {ip address removed} 0.001
2024-05-15T23:11:54.040116979Z API 2024-05-15 23:11:53.332613 200 http/1.1 GET /sdapi/v1/options {ip address removed} 0.0076
```
You'll also note log lines for getting the LoRAs and VAEs and models and whatnot, those work and the model list is updated in the photoshop plugin.
Any ideas appreciated -- also, love this plugin! Thanks for the hard work on it. I have it working on another machine and it works fine, which is baffling
Additionally I noticed a `log errors to file` option in the photoshop plugin, but, unsure where that file would live.
Thanks!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.