rustdoc icon indicating copy to clipboard operation
rustdoc copied to clipboard

"Error while processing route: crates JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"

Open steveklabnik opened this issue 7 years ago • 3 comments

@GuillaumeGomez has problems loading up rustdoc

imperio

This means that this line is for some reason not finding data.json.

I have a hunch it's because this is a relative URL. It works for me locally, and @quietmisdreavus as well. @GuillaumeGomez is on OS X, so I wonder if that's the issue.

If anyone else sees this bug, I'd like to figure out how to solve it.

As a workaround, python -m SimpleHTTPServer in the example\target\doc directory seems to make it work.

steveklabnik avatar Jul 17 '17 20:07 steveklabnik

Works fine for me on OSX. Firefox works without any issues. Chrome complained about CORS but after running chrome with --disable-web-security (lol) it worked too.

64 avatar Jul 18 '17 00:07 64

Odd, trying it again today I do seem to get that issue on Firefox.

image

Going to #/example gives the same error. Not entirely sure why it's happening today but not when I tried it before, maybe I'm doing something stupid. Chrome still works fine (apart from the CORS thing). Deleting the example/target/doc directory and running it again didn't do anything either.

I'll try and investigate this further.

64 avatar Jul 18 '17 14:07 64

I am marking this as "hard" since we don't know what the problem is yet; once we identify it this may change!

steveklabnik avatar Aug 08 '17 19:08 steveklabnik