-
Notifications
You must be signed in to change notification settings - Fork 152
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
Dereferencing a URL did not result in a valid JSON-LD object #747
Comments
Another example with data past from a webpage: same error message. {
"@context" : "http://schema.org",
"@type" : "FoodEstablishment",
"image": [
"https://cdn.website.dish.co/media/62/04/2322328/Au-Cha-LHeureux-couv-cha.jpg"
],
"name" : "Au Cha L'Heureux",
"address" : {
"@type": "PostalAddress",
"streetAddress": "3 Impasse du Miracle",
"addressLocality": "Chavanod",
"postalCode": "74650",
"addressCountry": "FR"
},
"email" : "",
"menu" : "https://cdn.website.dish.co/media/d5/b1/2385750/Au-Cha-LHeureux-menu-cha-lheureux.jpg",
"priceRange": "",
"geo" : {
"@context" : "http://schema.org",
"@type" : "GeoCoordinates",
"latitude" : "45.8833524",
"longitude" : "6.0622454"
},
"url" : "https://au-cha-lheureux-restaurant.eatbu.com/",
"telephone" : "+33450524233",
"servesCuisine" : "Française, Fait maison, Traditionnel",
"paymentAccepted" : "Espèces, Paiement sans contact, MasterCard, Ticket Restaurant®, VISA, Carte ticket restaurant, Carte de débit, Apple Pay",
"openingHoursSpecification" : [
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Monday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Tuesday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Wednesday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Thursday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Thursday",
"opens" : "18:00",
"closes" : "21:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Friday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Friday",
"opens" : "18:00",
"closes" : "21:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Saturday",
"opens" : "12:00",
"closes" : "14:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Saturday",
"opens" : "18:00",
"closes" : "21:00"
}
,
{
"@type" : "OpeningHoursSpecification",
"dayOfWeek" : "http://schema.org/Sunday",
"opens" : "00:00",
"closes" : "00:00"
}
],
"specialOpeningHoursSpecification" : [
]
,"deliveryMethod": [
"PICKUP",
"DELIVERY" ]
} |
It works with the Ruby distiller: http://rdf.greggkellogg.net/distiller?command=expand&format=jsonld&output_format=jsonld&url=https:%2F%2Fmobilizon.chapril.org%2Fevents%2Fed969ea7-5c89-460e-b87b-6411ce747965 as the error message indicated, it seems to most likely be a CORS issue. |
if you fix this issue of CORS error, please post it, i'm struggling with the same |
It's a server configuration issue. These are the headers returned from schema.org:
Key is probably CORS was a bad idea, IMHO. |
@davidlehn thoughts? |
All remote documents used display the following error:
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.
Example : https://mobilizon.chapril.org/events/ed969ea7-5c89-460e-b87b-6411ce747965
All tabs are empty, except the Visualized tab that display the graph.
Tested with Safari, Chrome and Firefox
The text was updated successfully, but these errors were encountered: