Closed mchlrch closed 2 years ago
To simulate HTTP replies and errors of the SPARQL-Endpoint, I used the following code: https://github.com/mchlrch/playground_nodejs/tree/master/http_simstub
To sum up my thoughts on the discussion yesterday:
I agree that the gateway status codes seem appropriate for sparqlProxy
. Trifid is indeed acting as a gateway or proxy
. It's even in the name.
For hydra-box I'm less convinced. Even if it call external services, it's more than a proxy. The fact that it can be used standalone suggests that hydra box should be solely responsible for its status codes.
And circling back, maybe so should be sparqlProxy? I admit I don't understand the relation between Trifid and the other elements...
This issue describes how the problem can be reproduced: https://github.com/zazuko/sparql-proxy/issues/10
In order to facilitate debugging of configuration and infrastructure issues, the current handling of errors and status codes !=
HTTP 2xx
received from the Triplestores SPARQL-Endpoint could be improved.(sparqlProxy only)
HTTP 502
expected instead ofHTTP 200
:HTTP 404
orHTTP 500
, then sparqlProxy currently returnsHTTP 200
(hydraBox only)
HTTP 502
expected instead ofHTTP 204
:HTTP 404
orHTTP 500
, then hydraBox currently returnsHTTP 204
(sparqlProxy, hydraBox)
HTTP 504
expected instead ofempty reply
:(sparqlProxy, hydraBox)
HTTP 502
instead ofHTTP 500
would be more specific:HTTP 500
HTTP 500