rust-lang / rust-playground

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

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

Closed misha-antonenko closed 6 months ago

misha-antonenko commented 6 months ago
Unexpected token '<', "<!DOCTYPE "... is not valid JSON

is what trying to build a piece of code reports on https://play.rust-lang.org/?version=nightly&mode=release&edition=2021

I cannot share the playground (if this is specific to that at all), because the 'share' section keeps loading indefinitely

Reproduces on the trivial code:

fn main() {
    let x = 1;
    println!("{}", x);
}

Might have something to do with #666

dcabanis commented 6 months ago

I am getting the same error on Windows and Linux. With Chrome and Edge. With firefox I am getting:

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

JasonkayZK commented 6 months ago

Same issue here, seems that the playground has downed. 😢

shepmaster commented 6 months ago

Issues from this morning are from #1028. Earlier is some other manifestation of #831 or #955

rmccampbell commented 5 months ago

I saw the same error today (though it was fixed shortly), maybe there needs to be some validation in whatever XHR request is returning this HTML which is presumably an error page? So it can at least fail gracefully with a more intelligible error message.

Powerlax commented 4 months ago

I saw the same error today with relatively trivial code. Please fix!