I've been using the extension for a few weeks now and it's been working fine then this weekend I started getting these errors thrown and the error below when I try to reset the key to try another connection.
Civitai Link: Connecting to Civitai Link Server
07:28:23-829468 ERROR executing callback: D:\automatic\extensions\sd_civitai_extension\scripts\link.py
app_started_callback: KeyError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ D:\automatic\modules\script_callbacks.py:130 in app_started_callback ││ ││ 129 │ │ │ t0 = time.time() ││ ❱ 130 │ │ │ c.callback(demo, app) ││ 131 │ │ │ timer(t0, c.script, 'app_started') ││ ││ D:\automatic\extensions\sd_civitai_extension\scripts\link.py:13 in connect_to_civitai ││ ││ 12 │ link.log('Connecting to Civitai Link Server') ││ ❱ 13 │ link.socketio_connect() ││ 14 │ link.join_room(key) ││ ││ ... 7 frames hidden ... ││ ││ D:\automatic\venv\lib\site-packages\websocket_handshake.py:57 in handshake ││ ││ 56 │ ││ ❱ 57 │ status, resp = _get_resp_headers(sock) ││ 58 │ if status in SUPPORTED_REDIRECT_STATUSES: ││ ││ D:\automatic\venv\lib\site-packages\websocket_handshake.py:147 in _get_resp_headers ││ ││ 146 │ if status not in success_statuses: ││ ❱ 147 │ │ response_body = sock.recv(int(resp_headers['content-length'])) # read the body ││ 148 │ │ raise WebSocketBadStatusException("Handshake status {status} {message} -+-+- {he │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯KeyError: 'content-length'
Civitai: Check resources for missing preview images
07:29:47-860482 ERROR changing setting civitai_link_key to 9a2168: ValueError
╭───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────╮
│ D:\automatic\modules\shared.py:580 in set │
│ │
│ 579 │ │ │ try: │
│ ❱ 580 │ │ │ │ self.data_labels[key].onchange() │
│ 581 │ │ │ except Exception as e: │
│ │
│ D:\automatic\extensions\sd_civitai_extension\civitai\link.py:230 in on_civitai_link_key_changed │
│ │
│ 229 │ │
│ ❱ 230 │ if not sio.connected: socketio_connect() │
│ 231 │
│ │
│ ... 1 frames hidden ... │
│ │
│ D:\automatic\venv\lib\site-packages\socketio\client.py:331 in connect │
│ │
│ 330 │ │ try: │
│ ❱ 331 │ │ │ self.eio.connect(real_url, headers=real_headers, │
│ 332 │ │ │ │ │ │ │ transports=transports, │
│ │
│ D:\automatic\venv\lib\site-packages\engineio\client.py:180 in connect │
│ │
│ 179 │ │ if self.state != 'disconnected': │
│ ❱ 180 │ │ │ raise ValueError('Client is not in a disconnected state') │
│ 181 │ │ valid_transports = ['polling', 'websocket'] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Client is not in a disconnected state
I've been using the extension for a few weeks now and it's been working fine then this weekend I started getting these errors thrown and the error below when I try to reset the key to try another connection.
Civitai Link: Connecting to Civitai Link Server 07:28:23-829468 ERROR executing callback: D:\automatic\extensions\sd_civitai_extension\scripts\link.py app_started_callback: KeyError ╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮│ D:\automatic\modules\script_callbacks.py:130 in app_started_callback ││ ││ 129 │ │ │ t0 = time.time() ││ ❱ 130 │ │ │ c.callback(demo, app) ││ 131 │ │ │ timer(t0, c.script, 'app_started') ││ ││ D:\automatic\extensions\sd_civitai_extension\scripts\link.py:13 in connect_to_civitai ││ ││ 12 │ link.log('Connecting to Civitai Link Server') ││ ❱ 13 │ link.socketio_connect() ││ 14 │ link.join_room(key) ││ ││ ... 7 frames hidden ... ││ ││ D:\automatic\venv\lib\site-packages\websocket_handshake.py:57 in handshake ││ ││ 56 │ ││ ❱ 57 │ status, resp = _get_resp_headers(sock) ││ 58 │ if status in SUPPORTED_REDIRECT_STATUSES: ││ ││ D:\automatic\venv\lib\site-packages\websocket_handshake.py:147 in _get_resp_headers ││ ││ 146 │ if status not in success_statuses: ││ ❱ 147 │ │ response_body = sock.recv(int(resp_headers['content-length'])) # read the body ││ 148 │ │ raise WebSocketBadStatusException("Handshake status {status} {message} -+-+- {he │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯KeyError: 'content-length' Civitai: Check resources for missing preview images
07:29:47-860482 ERROR changing setting civitai_link_key to 9a2168: ValueError ╭───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────╮ │ D:\automatic\modules\shared.py:580 in set │ │ │ │ 579 │ │ │ try: │ │ ❱ 580 │ │ │ │ self.data_labels[key].onchange() │ │ 581 │ │ │ except Exception as e: │ │ │ │ D:\automatic\extensions\sd_civitai_extension\civitai\link.py:230 in on_civitai_link_key_changed │ │ │ │ 229 │ │ │ ❱ 230 │ if not sio.connected: socketio_connect() │ │ 231 │ │ │ │ ... 1 frames hidden ... │ │ │ │ D:\automatic\venv\lib\site-packages\socketio\client.py:331 in connect │ │ │ │ 330 │ │ try: │ │ ❱ 331 │ │ │ self.eio.connect(real_url, headers=real_headers, │ │ 332 │ │ │ │ │ │ │ transports=transports, │ │ │ │ D:\automatic\venv\lib\site-packages\engineio\client.py:180 in connect │ │ │ │ 179 │ │ if self.state != 'disconnected': │ │ ❱ 180 │ │ │ raise ValueError('Client is not in a disconnected state') │ │ 181 │ │ valid_transports = ['polling', 'websocket'] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ValueError: Client is not in a disconnected state