crosscite / content-negotiation

DOI content negotiation
https://data.crosscite.org
MIT License
3 stars 4 forks source link

JSON::LD::JsonLdError::LoadingRemoteContextFailed in index#show #85

Closed mfenner closed 5 years ago

mfenner commented 5 years ago

Error in Data

JSON::LD::JsonLdError::LoadingRemoteContextFailed in index#show loading remote context failed: http://schema.org: Failed to open TCP connection to schema.org:80 (Cannot assign requested address - connect(2) for "schema.org" port 80)

View on Bugsnag

Stacktrace

config/initializers/mime_types.rb:42 - block (2 levels) in <top (required)>
app/controllers/index_controller.rb:43 - show

View full stacktrace

Created automatically via Bugsnag

mfenner commented 5 years ago

Use https://github.com/ruby-rdf/json-ld-preloaded to preload json-ld context. This should not only help with network errors, but also significantly speed up RDF-XML and turtle generation.