lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.33k stars 812 forks source link

I need help,ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost. #949

Open tianxiadiyishuaiuio opened 3 months ago

tianxiadiyishuaiuio commented 3 months ago

Exception in thread Thread-22 (webui_worker): Traceback (most recent call last): File "threading.py", line 1016, in _bootstrap_inner File "threading.py", line 953, in run File "G:\webui_forge_cu121_torch21\webui\webui.py", line 86, in webui_worker app, local_url, share_url = shared.demo.launch( File "G:\webui_forge_cu121_torch21\system\python\lib\site-packages\gradio\blocks.py", line 2446, in launch raise ValueError( ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.

I don't kown where and how to set 'share=true' 企业微信截图_17230086551364

Accurio commented 2 months ago

If you use a proxy server in Windows, you may need to set HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables. Open a command prompt, run these command, then do all work in this command prompt.

set http_proxy=<proxy-server-url>
set https_proxy=<proxy-server-url>
set no_proxy=localhost,127.0.0.1,::1
tianxiadiyishuaiuio commented 2 months ago

image it dose not work,it always in queue

AlessandroSpallina commented 2 months ago

try launching as ./webui.sh --no-gradio-queue

woshiweixin commented 1 month ago

close vpn ,亲测有用,我跟你遇到完全一样的问题,关掉代理服务器或者关闭vpn就可以解决了