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 '<', "<!DOCTYPE "... is not valid JSON #1025

Closed
misha-antonenko opened this issue Jan 2, 2024 · 6 comments
Closed

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

misha-antonenko opened this issue Jan 2, 2024 · 6 comments

Comments

@misha-antonenko
Copy link

misha-antonenko commented Jan 2, 2024

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
Copy link

dcabanis commented Jan 4, 2024

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
Copy link

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

@shepmaster
Copy link
Member

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

@shepmaster shepmaster closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@rmccampbell
Copy link

rmccampbell commented Feb 27, 2024

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
Copy link

Powerlax commented Mar 6, 2024

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

@Huyyyyyyyy
Copy link

i got same error today

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

7 participants