-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Running the sd api natively on windows 10 works
but when doing it via wsl it's not able to connect to the stable diffusion address(sd is being run on windows 10 natively)
Is there an existing issue for this?
- I have searched the existing issues
Reproduction
Run stable diffusion on windows 10
Run the webui in wsl
Screenshot
No response
Logs
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/routes.py", line 374, in run_predict
output = await app.get_blocks().process_api(
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 1017, in process_api
result = await self.call_function(
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 849, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/utils.py", line 453, in async_iteration
return next(iterator)
File "/home/doom/text-generation-webui/modules/chat.py", line 167, in cai_chatbot_wrapper
for _history in chatbot_wrapper(text, max_new_tokens, do_sample, temperature, top_p, typical_p, repetition_penalty, encoder_repetition_penalty, top_k, min_length, no_repeat_ngram_size, num_beams, penalty_alpha, length_penalty, early_stopping, seed, name1, name2, context, check, chat_prompt_size, chat_generation_attempts):
File "/home/doom/text-generation-webui/modules/chat.py", line 125, in chatbot_wrapper
visible_reply = apply_extensions(visible_reply, "output")
File "/home/doom/text-generation-webui/modules/extensions.py", line 36, in apply_extensions
text = extension.output_modifier(text)
File "/home/doom/text-generation-webui/extensions/sd_api_pictures/script.py", line 125, in output_modifier
image = get_SD_pictures(string)
File "/home/doom/text-generation-webui/extensions/sd_api_pictures/script.py", line 81, in get_SD_pictures
response = requests.post(url=f'{params["address"]}/sdapi/v1/txt2img', json=payload)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/home/doom/miniconda3/envs/textgen/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /sdapi/v1/txt2img (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0d0e1fdfc0>: Failed to establish a new connection: [Errno 111] Connection refused'))System Info
GTX 3090
Windows 10 wslMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working