Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Handle missing query validation error in GraphQL view (#10901)

Mikadec08e3842a8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 164e1abd7f..48dbce78f1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ All notable, unreleased changes to this project will be documented in this file.
- Reference attribute linking to product variants - #10468 by @IKarbowiak
- Add base shipping price to `Order` - #10771 by @fowczarek
- Add new field `audience` to App manifest. If provided, App's JWT access token will have `aud` field. - #10845 by @korycins
+- GraphQL view no longer generates error logs when the HTTP request doesn't contain a GraphQL query - #10901 by @NyanKiyoshi
+
### GraphQL API
- Add `taxExemptionManage` mutation - #10344 by @SzymJ
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.py
index 26f7bf265a..c5cb98c0e0 100644
--- a/saleor/graphql/views.py
+++ b/saleor/graphql/views.py
@@ -245,7 +245,7 @@ class GraphQLView(View):
return (
None,
ExecutionResult(
- errors=[ValueError("Must provide a query string.")], invalid=True
+ errors=[GraphQLError("Must provide a query string.")], invalid=True
),
)