hbz / lobid-gnd

UI and API to the Integrated Authority File (Gemeinsame Normdatei, GND)
http://lobid.org/gnd
Eclipse Public License 2.0
24 stars 5 forks source link

Serve context.jsonld from file system instead of http #370

Open dr0i opened 7 months ago

dr0i commented 7 months ago

We experience sometimes (too) high usage of our web proxy. We will pimp that server, but meanwhile it would be good to avoid these kinds of crashes in future. The cause: It seems that if the context.jsonld cannot be loaded by the play app , it crashes (org.apache.jena.riot.RiotException: loading remote context failed: https://lobid.org/gnd/context.jsonld) . From the logs we see that our play app is loading the context.jsonld from this HTTP-URL. Play should load this context from the filesystem , avoiding the proxy , avoiding these kind of crashes.