stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: "Expecting value: line 1 column 1 (char 0)" thrown, when I added "--listen" to my "COMMANDLINE_ARGS"

Open KsAPOSTROPHE opened this issue 2 years ago • 40 comments

Is there an existing issue for this?

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

What happened?

Hello, developers

I added --listen arg to my COMMANDLINE_ARGS, like "set COMMANDLINE_ARGS= --listen". which located at "webui-user.bat" file.

Then the error throw out. "Expecting value: line 1 column 1 (char 0)", here is the screenshot for this error: image

BTW, I created a new instance, and repeat the steps above, the error still reproduced.

[System]: windows 10

Please someone help.

Thank you for your patient reading.

Steps to reproduce the problem

  1. git clone the repo
  2. run
  3. set COMMANDLINE_ARGS= --listen at webui-user.bat
  4. rerun

What should have happened?

Can run normally and access the instance locally

Commit where the problem happens

3856ada5cc9ac4124e20ff311ce7aa77330845d9

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

COMMANDLINE_ARGS= --listen

List of extensions

No

Console logs

venv "H:\test\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Installing requirements for Web UI
Launching Web UI with arguments: --api --listen
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from H:\test\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: H:\test\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 3.7s (load weights from disk: 0.2s, create model: 0.4s, apply weights to model: 0.9s, apply half(): 0.8s, move model to device: 0.7s, load textual inversion embeddings: 0.8s).
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 12.0s (import torch: 1.1s, import gradio: 0.8s, import ldm: 0.4s, other imports: 0.7s, setup codeformer: 0.2s, load scripts: 0.6s, load SD checkpoint: 3.8s, create ui: 0.2s, gradio launch: 4.2s, scripts app_started_callback: 0.1s).

Additional information

No response

KsAPOSTROPHE avatar Mar 29 '23 06:03 KsAPOSTROPHE

Share and ngrok similarly, the connection is being destroyed

KeHcu avatar Mar 29 '23 07:03 KeHcu

I got this problem too. I found a solution https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9055#issuecomment-1485787648 , but it doesn't work for me.

FruiteePro avatar Mar 29 '23 07:03 FruiteePro

Share and ngrok similarly, the connection is being destroyed

I noticed it just modified some styles, that might not work for me either.

Thank you for help as well.

KsAPOSTROPHE avatar Mar 29 '23 07:03 KsAPOSTROPHE

Share and ngrok similarly, the connection is being destroyed

Sorry, Could you explain that more? Thank you

KsAPOSTROPHE avatar Mar 29 '23 07:03 KsAPOSTROPHE

Share and ngrok similarly, the connection is being destroyed

Sorry, Could you explain that more? Thank you

yesterday everything worked fine, today I launched it in the cloud via --ngrok, opened it in the browser, errors got into the console, the connection was interrupted, I tried to launch share the same thing happens

KeHcu avatar Mar 29 '23 07:03 KeHcu

Share and ngrok similarly, the connection is being destroyed

Sorry, Could you explain that more? Thank you

yesterday everything worked fine, today I launched it in the cloud via --ngrok, opened it in the browser, errors got into the console, the connection was interrupted, I tried to launch share the same thing happens

well, look weird too.

I plan to migrate to a docker application.

KsAPOSTROPHE avatar Mar 29 '23 07:03 KsAPOSTROPHE

I got this problem too. I found a solution #9055 (comment) , but it doesn't work for me.

i don't even find the user.css ,is it in this project?

GreatLikeGame avatar Mar 29 '23 11:03 GreatLikeGame

I got this problem too. I found a solution #9055 (comment) , but it doesn't work for me.

i don't even find the user.css ,is it in this project?

Another comment said you can add these words at the bottom of style.css.

I solved the issue by rolling back the Git commit to the version from March 14th.

FruiteePro avatar Mar 29 '23 13:03 FruiteePro

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

aleimu avatar Mar 29 '23 13:03 aleimu

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

It works, Thanks.

wanghao-cst avatar Mar 29 '23 15:03 wanghao-cst

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

OK, it must be the Chinese characteristics issue, lol

KsAPOSTROPHE avatar Mar 29 '23 15:03 KsAPOSTROPHE

No proxy service is used Parameters are used --no-gradio-queue . Server return {"active":false,"queued":true,"completed":false,"progress":null,"eta":null,"live_preview":null,"id_live_preview":-1,"textinfo":"In queue..."} Image output display "In queue..." It just happens less often

xam0482 avatar Mar 30 '23 16:03 xam0482

I've upgraded gradio to 3.24 and turned off --api(because there's an error and can't reference decode_base64_to_file The new version uses decode_base64_to_image).

Seems to have improved

At least the first picture trained by embedding will be generated correctly

xam0482 avatar Mar 31 '23 11:03 xam0482

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

Great! How did you find that?

SuperPhant avatar Apr 01 '23 06:04 SuperPhant

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

sorry I don't understand --no-gradio-queue, what does it mean?

Jacoboob avatar Apr 11 '23 15:04 Jacoboob

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

sorry I don't understand --no-gradio-queue, what does it mean?

Jacoboob avatar Apr 11 '23 15:04 Jacoboob

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

sorry I don't understand --no-gradio-queue, what does it mean?

I don't know either .bro you're Chinese right .same problem happened to me and I was wondering how the hell to add these strings of code to Python

UriahKong avatar Apr 12 '23 06:04 UriahKong

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9132#issuecomment-1504714740

just add set COMMANDLINE_ARGS=--no-gradio-queue in webui.bat

Rosanguis avatar Apr 13 '23 23:04 Rosanguis

set COMMANDLINE_ARGS=--no-gradio-queue

正解,已经解决了,添加这个以后能开代理,不会报错了

huaxiangtt avatar May 20 '23 14:05 huaxiangtt

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

anyone could explain why network proxy impacts the normal function???

Stream-ljw avatar May 26 '23 03:05 Stream-ljw

I found the reason because the network proxy software was turned on, turning off the shadowsocks will work fine, or use --no-gradio-queue

<html>
<head>
 <title>500 Internal Privoxy Error</title>
 <link rel="shortcut icon" href="http://config.privoxy.org/error-favicon.ico" type="image/x-icon"></head>
<body>
<h1>500 Internal Privoxy Error</h1>
<p>Privoxy encountered an error while processing your request:</p>
<p><b>Could not load template file <code>no-server-data</code> or one of its included components.</b></p>
<p>Please contact your proxy administrator.</p>
<p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory.  The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file.  (It's typically the Privoxy install directory).</p>
</body>
</html>

thx!!

odotq avatar Jun 04 '23 03:06 odotq

./webui.sh --no-gradio-queue

works for me

bitfishxyz avatar Jun 18 '23 23:06 bitfishxyz

set COMMANDLINE_ARGS=--no-gradio-queue

正解,已经解决了,添加这个以后能开代理,不会报错了

在webui.bat中添加了set COMMANDLINE_ARGS=--no-gradio-queue 之后还做了什么吗?

kidGuo avatar Jul 25 '23 18:07 kidGuo

I love u guys!!!!!!!!! It finally works!!!!!!!!!!!! click 'edit' of the .bat file, and add the line --no-gradio-queue after set COMMANDLINE_ARGS=

you guys are my angels!!

if not working, re-start your computer might be a good choice!!( my own experience)

CiciLyn avatar Aug 18 '23 06:08 CiciLyn

I am aware of this issue. It seems to occur when the network proxy is turned on, resulting in an error like "Expecting value: line 1 column 1". The problem doesn't occur when the proxy is turned off.

However, you can prevent this error even when the proxy is on by setting COMMANDLINE_ARGS= --no-gradio-queue in both webui-user.bat and webui-user.bat. This way, you will not get this error even when the proxy is enabled.

ihmily avatar Oct 20 '23 03:10 ihmily

I am aware of this issue. It seems to occur when the network proxy is turned on, resulting in an error like "Expecting value: line 1 column 1". The problem doesn't occur when the proxy is turned off.

However, you can prevent this error even when the proxy is on by setting COMMANDLINE_ARGS= --no-gradio-queue in both webui-user.bat and webui-user.bat. This way, you will not get this error even when the proxy is enabled.

Hello ! how to make it on macOS ?

Metashama avatar Nov 01 '23 11:11 Metashama

1

Yes,Is work!

auto7359896 avatar Nov 07 '23 07:11 auto7359896

设置 COMMANDLINE_ARGS=--no-gradio-queue

正解,已经解决了,添加这个以后能开代理,就不会报错了

你好,我是ubuntu搭建的,怎么写啊?

Totoro-jc avatar Nov 11 '23 07:11 Totoro-jc

#9132 (comment)

just add set COMMANDLINE_ARGS=--no-gradio-queue in webui.bat

hi bro,there'r two webui-user.bat files,one of 'em's 3kb ,another one 's 1kb,which one i should edit? plz thx very much Uploading Screenshot4stablediffusionbugerorline0.png…

ilxy2 avatar Dec 09 '23 16:12 ilxy2

--no-gradio-queue

This works for me, thank you.

solstice-gao avatar Dec 19 '23 16:12 solstice-gao