Skip to content

[Bug]: txt2img API Requests regularly fail  #10474

Description

@montyanderson

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Since upgrading to the latest automatic release, we are experiencing an issue when running requests against the API.

Steps to reproduce the problem

  1. Install Automatic
  2. Run many requests against the txt2img API

What should have happened?

Previously we saw failures almost never.

Commit where the problem happens

1.2.1 or earlier

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

python webui.py --xformers --ckpt /workspace/stable-diffusion-webui/v1-5-pruned-emaonly.ckpt --opt-split-attention --listen --enable-insecure-extension-access --api


### List of extensions

ControlNet

### Console logs

```Shell
88%|████████▊ | 44/50 [00:04<00:00,  9.30it/s]Exception in callback H11Protocol.timeout_keep_alive_handler()
handle: <TimerHandle when=5173939.370990578 H11Protocol.timeout_keep_alive_handler()>
Traceback (most recent call last):
  File "/workspace/stable-diffusion-webui/venv/lib/python3.10/site-packages/h11/_state.py", line 249, in _fire_event_triggered_transitions
    new_state = EVENT_TRIGGERED_TRANSITIONS[role][state][event_type]
KeyError: <class 'h11._events.ConnectionClosed'>


### Additional information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions