ICOS-Carbon-Portal / meta

ICOS Carbon Portal metadata service
GNU General Public License v3.0
3 stars 1 forks source link

[sparql] Insert error report into response stream #196

Closed mirzov closed 10 months ago

mirzov commented 1 year ago

If SPARQL evaluation fails during streaming of the result to the client, it would be useful to append the stacktrace of the exception to the response. Currently, if StatementEnricher fails (e.g. due to broken metadata for a data object, making it impossible to construct citation strings and references and such) or SPARQL 'magic' predicate evaluation fails for the same reason, the response stream is often abruptly interrupted. It would be better to append debug info.