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
{"errors":[{"message":"invalid type for variable: 'nodeId'","extensions":{"type":"ValidationInvalidTypeVariable","name":"nodeId"}}]}
we see traces and metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
No Query String
request:
response:
400
{"data":null,"errors":[{"message":"Must provide query string."}]}
we do NOT see traces or metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
we see traces and metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
Expected behavior
all error conditions covered in prometheus metrics.
all error response to have the same shape regarding extensions.type
Output
If applicable, add output to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
related to #2101
This is a draft/attempt to have more consistent errors in the router
following this spec
https://www.apollographql.com/docs/apollo-server/data/errors/ with the
error extension code.
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Describe the bug
We see different error response shape depending on which router lifecycle event generates an error.
Sometimes the response body will have an errors[0].extensions.type, others will not.
To Reproduce
Invalid Variables:
request:
query
response:
400
we see traces and metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
No Query String
request:
response:
400
we do NOT see traces or metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
Invalid Query String
request:
response:
400
we see traces and metrics for this event. we do not observe logs for this event. I actively tailed the K8s logs while running a small test in production and ran locally.
Expected behavior
Output
If applicable, add output to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: