json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
856 stars 152 forks source link

Playground is down #728

Closed teledyn closed 4 years ago

teledyn commented 4 years ago

See: https://tinyurl.com/kk7k5qt (A link to the JSON-LD playground)

jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.

And that is just the tip of the iceberg of a lot of json-ld services being impacted. See also https://github.com/RDFLib/rdflib-jsonld/issues/84

dlongley commented 4 years ago

The playground is up. It's a problem with schema.org. Their context isn't being served properly (it is ignoring a request for JSON-LD and only serving HTML):

Run:

curl -v -H "accept: application/ld+json" "http://schema.org"

You'll see the output is HTML.

dlongley commented 4 years ago

Closing since the issue is elsewhere. Feel free to reopen/open another issue if there's an issue with the playground.

davidlehn commented 4 years ago

It was a combination schema.org and jsonld.js problem. Should be fixed now.

gkellogg commented 4 years ago

Thanks, @davidlehn. As I recall, there's no test infrastructure for the xhr document loader.

davidlehn commented 4 years ago

@gkellogg The playground users are the test infrastructure. They found a bug, we fixed it. ;-) But yes, that should be addressed at some point.