civitai / sd_civitai_extension

All of the Civitai models inside Automatic 1111 Stable Diffusion Web UI
MIT License
2.34k stars 443 forks source link

unable to connect, getting handshake issues and unable to change key. #82

Open Doctor0S opened 1 year ago

Doctor0S commented 1 year ago

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

AndrewJames201 commented 1 year ago

I have the exact same problem, have you solved it?