You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jabran Asghar (Jira)" <ji...@apache.org> on 2020/11/04 13:43:00 UTC
[jira] [Updated] (SLING-9877) Schema related errors are not
captured and returned as a GrpahQL error response
[ https://issues.apache.org/jira/browse/SLING-9877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jabran Asghar updated SLING-9877:
---------------------------------
Description:
*Problem:*
GraphQL query execution problems are captured by SLING-9847 and SLING-9870, but errors which may occur due to schema being not valid (for any reason), are still not captured. In such cases, a non standard error response is sent back to client.
*Proposed solution:*
Capture the errors, and format it according to GraphQL error response specification [0]. Utilize "extensions" JSON property to capture any additional meaningful information.
[0] [http://spec.graphql.org/June2018/#sec-Errors]
was:
*Problem:*
GraphQL query execution problems are captured by SLING-9847 and SLING-9870, but errors which may occur due to schema being not valid (for any reason), are still not captured. In such cases, a non standard error response is sent back to client.
*Proposed solution:*
Capture the errors, and format it according to GraphQL error response specification [0]. Utilize "extensions" JSON property to capture any additional meaningful information.
[0] http://spec.graphql.org/June2018/#sec-Errors
> Schema related errors are not captured and returned as a GrpahQL error response
> -------------------------------------------------------------------------------
>
> Key: SLING-9877
> URL: https://issues.apache.org/jira/browse/SLING-9877
> Project: Sling
> Issue Type: Bug
> Components: GraphQL
> Affects Versions: GraphQL Core 0.0.6
> Reporter: Jabran Asghar
> Priority: Major
> Fix For: GraphQL Core 0.0.8
>
>
> *Problem:*
> GraphQL query execution problems are captured by SLING-9847 and SLING-9870, but errors which may occur due to schema being not valid (for any reason), are still not captured. In such cases, a non standard error response is sent back to client.
> *Proposed solution:*
> Capture the errors, and format it according to GraphQL error response specification [0]. Utilize "extensions" JSON property to capture any additional meaningful information.
>
> [0] [http://spec.graphql.org/June2018/#sec-Errors]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)