Open gaurav opened 7 months ago
This is now working again -- there wasn't anything wrong with our code, but we needed to move our backend to a different node. However, I notice that we weren't displaying clear error messages when the backend was down -- so I'll use this ticket to track improving the error messages if the backend is down.
We currently display an alert() box -- we don't have a way to detect when there is a connection issue as compared to some other issue, so we report this as an "unknown error".
@hlapp Do you think this is good enough for v1.0, or should we try to detect connection issues and report that separately?
For the end user arguably it doesn't make a difference why there's an issue with connecting to the reasoner – the effect is the same, and no matter what the reason, they can't fix it. That is, unless they don't have a working network connection. But then they'll presumably have other issues too, so they'll probably already know that.
So in short, I think at the point we're at this is tinkering around the edges and can be left for down the road.
The previous error described below has been fixed, but while it was in effect, we didn't display clear error messages indicating that the backend was down. I'll use this issue to fix that, then close it.
Previous error
For quite a long time, we have been using a
@context
of https://www.phyloref.org/phyx.js/context/v1.0.0/phyx.json in our JSON-LD files, and this has been working on the Hipergator backend for all of this time.Recently, some change on either Hipergator or GitHub has caused this URL to no longer work. Jobs running in the cluster need to use a local proxy server to talk to the internet. I can download this file just fine on Hipergator:
But trying to reason over a phyloreference results in a "Could not parse JSONLD" error:
However, if I change the path to https://raw.githubusercontent.com/phyloref/phyx.js/master/docs/context/v1.0.0/phyx.json, reasoning works fine. Note that this produces the same warning as the other request:
I'm still trying to work out why both of those URLs work in
wget
but one of them works in JPhyloRef (or rather, in the rdf4j library we use). The only difference I can spot is that the former returns a MIME type ofapplication/json
, while the latter returnstext/plain
.