You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason seems to be that the Getty SPARQL endpoint will accept application/sparql-results+json but not application/json (if that's what GRLC is sending it as an Accept header). However the original response of the endpoint, as I have tested it, is a HTTP 500.
Falling back to a supported MIME type, or inspecting the JSON schema of the response payload, can be future enhancements nice to have, but I think it is more urgent to propagate error conditions in the response header of GRLC, so that one doesn't get misleading OKs.
Perhaps consider returning a 502 Bad Gateway for these cases, to highlight it is not GRLC's fault.
The text was updated successfully, but these errors were encountered:
Re openjournals/joss-reviews#2731
If I try to execute a request from my API at http://grlc.io/api/alexdma/getty-linked-data-api/#/processes/get_processes
with application/json as a MIME type, I get an HTTP 200 but with the following payload (seemingly forwarded from the SPARQL endpoint)
The reason seems to be that the Getty SPARQL endpoint will accept
application/sparql-results+json
but notapplication/json
(if that's what GRLC is sending it as an Accept header). However the original response of the endpoint, as I have tested it, is a HTTP 500.Falling back to a supported MIME type, or inspecting the JSON schema of the response payload, can be future enhancements nice to have, but I think it is more urgent to propagate error conditions in the response header of GRLC, so that one doesn't get misleading OKs.
Perhaps consider returning a 502 Bad Gateway for these cases, to highlight it is not GRLC's fault.
The text was updated successfully, but these errors were encountered: