Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token 'B', "Bad Gateway" is not valid JSON #35

Open
LoynisSilver opened this issue Mar 15, 2024 · 7 comments
Open

Unexpected token 'B', "Bad Gateway" is not valid JSON #35

LoynisSilver opened this issue Mar 15, 2024 · 7 comments

Comments

@LoynisSilver
Copy link

I started getting this weird error some days ago:

The webui just shuts down after a while. Most of the time I can only generate one image. Funny enough, I seem to get this error at the very end of the second image generation.

When I go back to the gradient notebook, I see that the cell "Start Stable Diffusion" has stopped.

This didn't happen before, it just started randomly, out of nowhere. One day I just got back from work and it just started behaving like this.

Need help please...

@TheLastBen
Copy link
Owner

colab ? and what is the full error log

@LoynisSilver
Copy link
Author

Hello TheLastBen, thanks for dropping in.

No, this is on PaperSpace, although you are right in that this issue is reminiscent of the behaviour of Google Colab. I actually swapped to PaperSpace because of this, and it worked great... until it began to exhibit this same issue about a week ago.

Let me try to give you better context about this issue:

I just see that the second image generation came to the end, it looks like it is trying to save the image, and then the WebUI gets disconnected. I get this error pop-up at this time:

1

And the WebUI stops working after that. Everytime I try to do something with it, that same popup appears multiple times, and nothing happens.

I also notice that at the time this error pops-up, the cell "Start Stable Diffusion" just stops, without any error log:

2

If I try using the link of the WebUI again, without restarting it, I see this:

4

I can restart that cell just fine, and get connected to a new WebUI session, although the same behaviour is repeated; at the very end of the second image's generation, I get disconnected.

I believe this is some error while saving the images after the first one during the WebUI session, since the error is consistent to the very end of the second image's generation, at 98%~100%, and because the second image doesn't even appear on the outputs:

3

Is the error log supposed to appear in the "Start Stable Diffusion" cell? If yes, I can 100% confirm to you that there is no error log. If not, please guide me to the correct place and I will do my best to provide you with the information you need.

@TheLastBen
Copy link
Owner

do you have enough disk space ?

@Hydrabate
Copy link

Just to echo this, I'm also getting the issue on Paperspace. Usually able to generate 4 images before the cell shuts down abruptly. No error messages. I once received 'IOStream.flush timed out' in the cell and also notice the CPU tends to jump above 100% when it crashes if they mean anything.
I do have disk space available too.

@moguldigital
Copy link

Same issue. Came out of nowhere a few days ago.

@LoynisSilver
Copy link
Author

do you have enough disk space ?

yes, plenty

@sixpt
Copy link

sixpt commented Apr 1, 2024

I believe I'm having the same issue, my thread is here:
TheLastBen/fast-stable-diffusion#2793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants