Open IvanGoncharov opened 6 months ago
I think this is causing some errors related to usage reporting. Now when I try to submit the same payload, I see the router error:
client error reported at ingress: If you see this frequently in your logs, please reach out to support@apollographql.com.
Details: Unparseable statsRecordKey with invalid metadata for graph BR-074-Tester@playground:
We're seeing this error come up very frequently for some customers, especially within the last week.
According to the spec, then should this JSON body run the operation with no errors? As the name is empty and the string is empty
curl -H 'Content-Type: application/json' http://127.0.0.1:4000/ -d '{ "operationName": "", "query": "query { me { id } }" }'
vs this is mismatch
curl -H 'Content-Type: application/json' http://127.0.0.1:4000/ -d '{ "operationName": "", "query": "query Hello { me { id } }" }'
Similarly wondering if this happens for any mismatch of operation name not found in the document.
According to the spec, then should this JSON body run the operation with no errors? As the name is empty and the string is empty
I think not, because the empty string is different from null
/ absent
Describe the bug Issue was reported by @bonnici in Slack: https://apollograph.slack.com/archives/C02UX05LF4K/p1710991184963719 Here is example of requests producing invalid responses:
Router responses with:
To Reproduce Steps to reproduce the behavior:
{"data":null}
as resultExpected behavior It should be a response containing the error and without
data
.https://spec.graphql.org/October2021/#GetOperation()