fix(graphql): don't report request errors (#1014)

This commit is contained in:
Kyrch
2025-11-29 03:19:08 -03:00
committed by GitHub
parent 3306e8502e
commit 037a460add
3 changed files with 4 additions and 8 deletions
-4
View File
@@ -201,10 +201,6 @@ HORIZON_PATH=horizon
IMAGE_DISK=images_local
IMAGE_DISK_ROOT=
# jetstream
JETSTREAM_PATH=
JETSTREAM_URL=http://localhost
# logging
LOG_CHANNEL=daily
LOG_DEPRECATIONS_CHANNEL=null
-4
View File
@@ -199,10 +199,6 @@ HORIZON_PATH=horizon
IMAGE_DISK=images_local
IMAGE_DISK_ROOT=
# jetstream
JETSTREAM_PATH=
JETSTREAM_URL=http://localhost
# logging
LOG_CHANNEL=daily
LOG_DEPRECATIONS_CHANNEL=null
+4
View File
@@ -7,6 +7,7 @@ namespace App\GraphQL\Handler;
use Error as PhpError;
use Exception;
use GraphQL\Error\Error as GraphQLError;
use GraphQL\Server\RequestError;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Rebing\GraphQL\Error\AuthorizationError;
use Rebing\GraphQL\Error\ValidationError;
@@ -30,6 +31,9 @@ class ErrorHandler
if ($error instanceof GraphQLError) {
continue;
}
if ($error instanceof RequestError) {
continue;
}
if (! $error instanceof Exception && ! $error instanceof PhpError) {
continue;
}