rust-lang / rust-playground

The Rust Playground
https://play.rust-lang.org/
Apache License 2.0
1.26k stars 206 forks source link

Response was not JSON: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data #831

Open ash-hashtag opened 2 years ago

ash-hashtag commented 2 years ago

Response was not JSON: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

It happens sometimes, I didn't find out exact reason, after pressing run something to do with println! in while loop?

HipHopHuman commented 2 years ago

This happens for me on every code snippet consistently, using Opera GX if that helps. EDIT (more info) it appears that this problem happens on the domain "https://play.rust-lang.org/" but not on "https://play.integer32.com/" (that one works fine). This is also affecting every example on https://tourofrust.com

JonahPlusPlus commented 1 year ago

Just happened to me on https://play.rust-lang.org/, but https://play.integer32.com/ worked fine.

shepmaster commented 1 year ago

For the incident starting around 2023-03-15, lets track it in #910

shepmaster commented 1 year ago

This issue is more about handling the sporadic rare error we get from normal, expected server restarts.

RalfJung commented 1 year ago

I'm now seeing this error again for all attempts of building/running something on the playground.

VDFOREVER commented 10 months ago

Same problem, but I was able to fix it, I went to https://play.rust-lang.org/ with vpn and then turned off vpn and rust-playground started working everywhere

dcabanis commented 10 months ago

Getting the same problem today on various browsers (Chrome, firefox, edge):

JSON.parse: unexpected character at line 1 column 1 of the JSON data

or

Unexpected token '<', "<!DOCTYPE "... is not valid JSON

This is the second time I have this problem in 3 weeks.