In Laravel Framework 6.20.40, Nuwave/Lighthouse V5.33.1, an error is reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39
1. Execute request: “query”: “query{ onlineStoreEtheme(themeid: “vogue”){ id editable createAt PublishAt }”, when the response Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in e:\\wwwroot\\object\\vendor\\nuwave\lighthouse\src\execution\reportingErrorHandler.php on line 39. as shown in Figure 1
{
"message": "Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 39",
"exception": "Symfony\Component\Debug\Exception\\FatalThrowableError",
"file": "E:\\wwwroot\\object\\app\\exceptions\Handler.php",
"line": 40,
"trace":[
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\execution\\reportingErrorHandler.php",
"line": 39,
"function": "report",
"class": "app\\exceptions\\handler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 153,
"function": "__invoke",
"class": "nuwave\\lighthouse\\execution\\reportingErrorHandler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\execution\\extensionErrorHandler.php",
"line": 37,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 153,
"function": "__invoke",
"class": "nuwave\\lighthouse\\execution\\ExtensionErrorHandler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\execution\ValidationErrorHandler.php",
"line": 34,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 153,
"function": "__invoke",
"class": "nuwave\\lighthouse\\execution\\validationErrorHandler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\execution\\authorizationErrorHandler.php",
"line": 34,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 153,
"function": "__invoke",
"class": "nuwave\\lighthouse\\execution\\authorizationErrorHandler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\execution\\authenticationErrorHandler.php",
"line": 34,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 153,
"function": "__invoke",
"class": "NuWave\\lighthouse\\execution\\AuthenticationErrorHandler",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 105,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 295,
"function": "then",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"function": "nuwave\\lighthouse\{closure}",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\Illuminate\\support\Collection.php",
"line": 638,
"function": "array_map"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 296,
"function": "map",
"class": "illuminate\\support\\Collection",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\executionresult.php",
"line": 147,
"function": "nuwave\\lighthouse\{closure}",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 264,
"function": "toarray",
"class": "graphql\\executor\\executionresult",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 168,
"function": "serializable",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 119,
"function": "executeoperation",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\support\\utils.php",
"line": 99,
"function": "nuwave\\lighthouse\{closure}",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 118,
"function": "applyEach",
"class": "nuwave\\lighthouse\support\utils",
"type": "::"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src \\support\\http\\controllers\\graphqlcontroller.php",
"line": 32,
"function": "ExecuteOperationOperation",
"class": "nuwave\\lighthouse\\graphql",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\s rc\\illuminate\\routing\\controllerDispatcher.php",
"line": 48,
"function": "__invoke",
"class": "nuwave\\lighthouse\\support\\http\\controllers\\graphqlcontroller",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\routing\route.php",
"line": 219,
"function": "dispatch",
"class": "illuminate\\routing\\controllerDispatcher",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\routing\route.php",
"line": 176,
"function": "RunController",
"class": "illuminate\\routing\route",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 681,
"function": "run",
"class": "illuminate\\routing\route",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 130,
"function": "illuminate\\routing\{closure}",
"class": "illuminate\\routing\router",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\ \support\\http\\middleware\\attemptAuthentication.php",
"line": 34,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "NuWave\\Lighthouse\\support\\http\\middleware\\attemptaAuthentication",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\ \src\\support\http\\middleware\\acceptjson.php",
"line": 27,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "nuwave\lighthouse\support\\http\\middleware\AcceptJson",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 105,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 683,
"function": "then",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 658,
"function": "runRouteWithInStack",
"class": "illuminate\\routing\router",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 624,
"function": "runRoute",
"class": "illuminate\\routing\router",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 613,
"function": "DispatchToRoute",
"class": "illuminate\\routing\router",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 170,
"function": "dispatch",
"class": "illuminate\\routing\router",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 130,
"function": "illuminate\\foundation\\http\{closure}",
"class": "illuminate\\foundation\http\\kernel",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\barryvdh\Laravel -debugbar\\src\\middleware\\InjectDebugBar.php",
"line": 67,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "barryvdh\\debugbar\\middleware\\InjectDebugBar",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework\src\\illum inate\\foundation\\http\\middleware\\TransformsRequest.php",
"line": 21,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "illuminate\\foundation\http\\middleware\\transformsRequest",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework\src\\illum inate\\foundation\\http\\middleware\\TransformsRequest.php",
"line": 21,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "illuminate\\foundation\http\\middleware\\transformsRequest",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\framework\src\Illu Minate\\Foundation\\Http\\middleware\\validatePostSize.php",
"line": 27,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "illuminate\\foundation\http\\middleware\\validatePostSize",
"type": "->"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\Illumina te\\foundation\\http\\middleware\\checkFormaIntenanceMode.php",
"line": 63,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "illuminate\\foundation\http\\middleware\\CheckFormaintenanceMode",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\vendor\fideloper\proxy\src\\trustproxies.php",
"line": 57,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "Fideloper\\Proxy\\TrustProxies",
"type": "->"
},
{
"file": "E:\\WWWRoot\\Object\Vendor\Dingo\Api\src\Http\Middleware\\request.php",
"line": 111,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"function": "handle",
"class": "dingo\api\\http\\middleware\\request",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 105,
"function": "illuminate\\pipeline\\{closure}",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 145,
"function": "then",
"class": "illuminate\\pipeline\\pipeline",
"type": "->"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 110,
"function": "SendRequestThroughHrouter",
"class": "illuminate\\foundation\http\\kernel",
"type": "->"
},
{
"file": "e:\\wwwroot\\object\\public\\index.php",
"line": 57,
"function": "handle",
"class": "illuminate\\foundation\http\\kernel",
"type": "->"
}
]#ATFP_CLOSE_Translate_span#
}
2. Check the code:\app\exceptions\handler.php:40 . as shown in Figure 2
/**
* Report or log an exception.
;
* @param \exception $exception
* @return void
* @throws exception
*/
public function report(Exception $Exception)
{
// 1/10 probability to report to Sentry to prevent Sentry from growing too fast
if (app()->environment() === "production"
&& app()->bound(Sentry)
&& $this->shouldreport($exception)
&& mt_rand(0, 100) < 10
) {
\sentry\withscope(function (\sentry\state\scope $scope) use ($exception): void {
$scope->settag(app.name, config(app.name));
\sentry\CaptureException($Exception);
});
}
if (($Exception instanceof businessException)) {
BusinessException::Notify($Exception);
}
parent::report($exception);
}
3. Check the code: /vendor/nuwave/lighthouse/src/execution/reportingErrorHandler.php:39 . There are comments on line 38: @phpsstan-ignore-next-line Laravel 7 was limited to accepting \Exception only. as shown in Figure 3
public function __invoke(?error $error, closure $next): ?array
{
if (null === $error) {
return $next(null);
}
// client-safe errors are assumed to be something that a client can handle
// or is expected to happen, e.g.
if ($error->isClientSafe()) {
return $next($error);
}
$previous = $error->getPrevious();
if (null !== $previous) {
// @phpstan-ignore-next-line laravel versions priority to 7 are limited to accepting \exception
$this->ExceptionHandler->report($previous);
}
return $next($error);
}
4. The version of the Laravel framework of the current program: Laravel Framework 6.20.40. The version of Nuwave/Lighthouse: v5.33.1.
PS E:\wwwroot\object> php artisan Laravel Framework 6.20.40 usage: Command[options][arguments]
PS E:\wwwroot\object> composer show nuwave/lighthouse -i EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d You are using the deprecated option "installed". Show all packages. name : nuwave/lighthouse Descrip. : a framework for serving graphql from laravel Keywords : GraphQL, Laravel, Laravel-GraphQL versions : * v5.33.1 type : library License : MIT License (MIT) (OSI Approved) Homepage : https://lighthouse-php.com source :[git]https://github.com/nuwave/lighthouse.git 4ff54df1a6e87fd4e753f4633cc9949f4664ae7d dist :[zip]https://api.github.com/repos/nuwave/lighthouse/ zipball/4ff54df1a6e87fd4e753f4633cc9949f4664ae7d 4FF54DF1A6E87FD4E753F4633CC9949F4664AE7D PATH : E:\wwwroot\object\vendor\nuwave\lighthouse Names : Nuwave/Lighthouse
5. Open the URL: https://github.com/nuwave/lighthouse/blob/v5.1.0/src/execution/reportingErrorHandler.php , you can be sure that this problem is no longer supported by Laravel 6 since version: v5.1.0. Decided to fall back to the previous version of this version: v5.0.2. as shown in Figure 4
public function __invoke(?error $error, closure $next): ?array
{
if ($error === null) {
return $next(null);
}
// client-safe errors are assumed to be something that a client can handle
// or is expected to happen, e.g.
if ($error->isClientSafe()) {
return $next($error);
}
$this->ExceptionHandler->Report(
// @phpstan-ignore-next-line todo remove when supporting laravel 7 and upwards
$error->GetPrevious()
);
return $next($error);
}
6. Execute the composer remove nuwave/lighthouse command to uninstall nuwave/lighthouse. as shown in Figure 5
PS E:\wwwroot\object> composer remove nuwave/lighthouse EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d ./composer.json has been updated EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d running composer update nuwave/lighthouse Loading composer repositories with package information Updating dependencies lock file operations: 0 installs, 0 updates, 6 removals - Removing Haydenpierce/class-finder (0.4.3) - Removing Laragraph/Utils (v1.1.1) - Removing MLL-Lab/Laravel-GraphQL-Playground (v2.5.0) - Removing Nuwave/Lighthouse (v5.33.1) - Removing ThecodingMachine/Safe (v1.3.3) - Removing Webonyx/GraphQL-PHP (v14.11.3) Writing lock file Installing dependencies from lock file (inclusion require-dev) Package operations: 0 installs, 0 updates, 6 removes - Removing Webonyx/GraphQL-PHP (v14.11.3) - Removing ThecodingMachine/Safe (v1.3.3) - Removing Nuwave/Lighthouse (v5.33.1) - Removing MLL-Lab/Laravel-GraphQL-Playground (v2.5.0) - Removing Laragraph/Utils (v1.1.1) - Removing Haydenpierce/class-finder (0.4.3) Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. GENERATING OPTIMIZED AUTOLOAD FILES > google\task\composer::cleanup class tests\feature\loginapIpostCartPaymentTest located in E:/WWWRoot/Object/Tests\Feature\ApiCartPaymentTest.php does not comply with PSR-4 autoloading standard. skipping. class tests\feature\loginapippostcarttest located in e:/wwwroot/object/tests\feature\apicarttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class tests\feature\logingetpaymenttest located in e:/wwwroot/object/tests\feature\paymenttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class SOFA\Eloquence\Searchable\Searchable located in E:/WWWRoot/Object/Vendor/SOFA/Eloquence-Base/SRC\Contracts\Searchable\Searchable.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\RecommendedProduct\Database\Seeders\LastSalleDatabaseSeeder Located in E:/WWWRoot/Object/Modules\LastSale\Database\Seeders\LastSaleDataBaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\CheckOutPageImage\Database\Seeders\PixelConversionDatabaseSeeder Located in E:/WWWRoot/Object/Modules\PixelConversion\Database\Seeders\PixelConversionDatabaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. class modules\themestore\tests\factorytest located in E:/WWWRoot/Object/Modules\ThemeStore\Tests\Unit\FactoryTest.php does not comply with PSR-4 autoloading standard. skipping. > Illuminate\Foundation\ComposerScripts::PostAutoLoadDump > @php artisan package:discover --ansi Discovered Package: arubacao/asset-cdn Discovered Package: Axlon/Laravel-Postal-Code-Validation Discovered Package: BarryVDH/Laravel-DebugBar Discovered Package: BeyondCode/Laravel-dump-Server Discovered Package: BeyondCode/Laravel-er-Diagram-Generator Discovered Package: boaideas/laravel-cli-create-user Discovered Package: CvieBrock/Eloquent-Sluggable Discovered Package: DINGO/API Discovered Package: FideLoper/Proxy Discovered Package: Geneaabs/Laravel-Model-Caching Discovered Package: IGaster/Laravel-Theme Discovered Package: Ignited/Laravel-OmniPay Discovered package: intervention/image Discovered Package: jenssegers/agent Discovered Package: JGrossi/Corcel Discovered Package: Laravel/Passport Discovered Package: Laravel/Scout Discovered Package: Laravel/Socialite Discovered Package: Laravel/Tinker Discovered Package: Laravel/UI Discovered Package: MaatWebsite/Excel discovered package: mpociot/laravel-apidoc-generator Discovered Package: Nesbot/Carbon Discovered Package: NeObject/Facebook-Conversions-API Discovered Package: NUNOMADURO/COLLISION Discovered Package: Nwidart/Laravel-Modules Discovered Package: Orangehill/Iseed Discovered Package: OverTrue/Laravel-Pinyin Discovered Package: OverTrue/Laravel-WeChat Discovered Package: S-ICHIKAWA/Laravel-SendGrid-Driver Discovered Package: Sentry/Sentry-Laravel Discovered Package: SocialiteProviders/Manager Discovered Package: SOFA/Eloquence-Base Discovered Package: SOFA/Eloquence-Mutable Discovered Package: Spatie/Laravel-ActivityLog Discovered Package: Spatie/Laravel-Permission Discovered Package: Spatie/Laravel-Query-Builder Discovered Package: Spatie/Laravel-Sitemap Discovered Package: tamayo/Laravel-scout-elastic Discovered Package: Torann/GeoIP Package manifested successfully. 114 packages you are using are looking for funding. Use the `Composer Fund` command to find out more!
7. Execute the composer require nuwave/lighthouse:5.0.2 command to install nuwave/lighthouse. Specify the exact version of the package. as shown in Figure 6
PS E:\wwwroot\object> composer require nuwave/lighthouse:5.0.2 EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d ./composer.json has been updated EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d running composer update nuwave/lighthouse Loading composer repositories with package information Updating dependencies lock file operations: 5 installs, 0 updates, 0 removals - locking haydenpierce/class-finder (0.4.3) - Locking Laragraph/Utils (v1.3.0) - Locking Nuwave/Lighthouse (v5.0.2) - Locking ThecodingMachine/Safe (v1.3.3) - Locking Webonyx/GraphQL-PHP (v14.11.3) Writing lock file Installing dependencies from lock file (inclusion require-dev) Package operations: 5 installs, 0 updates, 0 removals - Download Laragraph/Utils (v1.3.0) - downloading nuwave/lighthouse (v5.0.2) - Installing Webonyx/GraphQL-PHP (v14.11.3): Extracting Archive - Installing thecodingMachine/Safe (v1.3.3): Extracting Archive - Installing Laragraph/Utils (v1.3.0): Extracting Archive -Installing haydenpierce/class-finder (0.4.3): Extracting Archive - Installing Nuwave/Lighthouse (v5.0.2): Extracting Archive 3 Package Suggestions were added by new dependencies, use `Composer suggest` to see details. Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. GENERATING OPTIMIZED AUTOLOAD FILES > google\task\composer::cleanup class tests\feature\loginapIpostCartPaymentTest located in E:/WWWRoot/Object/Tests\Feature\ApiCartPaymentTest.php does not comply with PSR-4 autoloading standard. skipping. class tests\feature\loginapippostcarttest located in e:/wwwroot/object/tests\feature\apicarttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class tests\feature\logingetpaymenttest located in e:/wwwroot/object/tests\feature\paymenttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class SOFA\Eloquence\Searchable\Searchable located in E:/WWWRoot/Object/Vendor/SOFA/Eloquence-Base/SRC\Contracts\Searchable\Searchable.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\RecommendedProduct\Database\Seeders\LastSalleDatabaseSeeder Located in E:/WWWRoot/Object/Modules\LastSale\Database\Seeders\LastSaleDataBaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\CheckOutPageImage\Database\Seeders\PixelConversionDatabaseSeeder Located in E:/WWWRoot/Object/Modules\PixelConversion\Database\Seeders\PixelConversionDatabaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. class modules\themestore\tests\factorytest located in E:/WWWRoot/Object/Modules\ThemeStore\Tests\Unit\FactoryTest.php does not comply with PSR-4 autoloading standard. skipping. > Illuminate\Foundation\ComposerScripts::PostAutoLoadDump > @php artisan package:discover --ansi Discovered Package: arubacao/asset-cdn Discovered Package: Axlon/Laravel-Postal-Code-Validation Discovered Package: BarryVDH/Laravel-DebugBar Discovered Package: BeyondCode/Laravel-dump-Server Discovered Package: BeyondCode/Laravel-er-Diagram-Generator Discovered Package: boaideas/laravel-cli-create-user Discovered Package: CvieBrock/Eloquent-Sluggable Discovered Package: DINGO/API Discovered Package: FideLoper/Proxy Discovered Package: Geneaabs/Laravel-Model-Caching Discovered Package: IGaster/Laravel-Theme Discovered Package: Ignited/Laravel-OmniPay Discovered package: intervention/image Discovered Package: jenssegers/agent Discovered Package: JGrossi/Corcel Discovered Package: Laravel/Passport Discovered Package: Laravel/Scout Discovered Package: Laravel/Socialite Discovered Package: Laravel/Tinker Discovered Package: Laravel/UI Discovered Package: MaatWebsite/Excel discovered package: mpociot/laravel-apidoc-generator Discovered Package: Nesbot/Carbon Discovered Package: NeObject/Facebook-Conversions-API Discovered Package: NUNOMADURO/COLLISION Discovered Package: Nuwave/Lighthouse Discovered Package: Nwidart/Laravel-Modules Discovered Package: Orangehill/Iseed Discovered Package: OverTrue/Laravel-Pinyin Discovered Package: OverTrue/Laravel-WeChat Discovered Package: S-ICHIKAWA/Laravel-SendGrid-Driver Discovered Package: Sentry/Sentry-Laravel Discovered Package: SocialiteProviders/Manager Discovered Package: SOFA/Eloquence-Base Discovered Package: SOFA/Eloquence-Mutable Discovered Package: Spatie/Laravel-ActivityLog Discovered Package: Spatie/Laravel-Permission Discovered Package: Spatie/Laravel-Query-Builder Discovered Package: Spatie/Laravel-Sitemap Discovered Package: tamayo/Laravel-scout-elastic Discovered Package: Torann/GeoIP Package manifested successfully. 116 packages you are using are looking for funding. Use the `Composer Fund` command to find out more! PS E:\wwwroot\object> composer show nuwave/lighthouse -i EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d You are using the deprecated option "installed". Show all packages. name : nuwave/lighthouse Descrip. : a framework for serving graphql from laravel Keywords : GraphQL, Laravel, Laravel-GraphQL versions : * v5.0.2 type : library License : MIT License (MIT) (OSI Approved) Homepage : https://lighthouse-php.com source :[git]https://github.com/nuwave/lighthouse.git d3921f093ccf608b52a92879dd24915317cefa65 dist :[zip]https://api.github.com/repos/nuwave/lighthouse/ zipball/D3921F093CCF608B52A92879DD24915317CEFA65 D3921F093CCF608B52A92879DD24915317CEFA65 PATH : E:\wwwroot\object\vendor\nuwave\lighthouse Names : Nuwave/Lighthouse Support Issues : https://github.com/nuwave/lighthouse/issues Source : https://github.com/nuwave/lighthouse autoload PSR-4 nuwave\lighthouse\ => src/ requires ext-json * HaydenPierce/class-finder ^0.4 IlluMinate/Auth 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Bus 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Contracts 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 Illuminate/http 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Pagination 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Queue 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Routing 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/Support 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 IlluMinate/validation 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 Laragraph/utils ^1 php >= 7.2 ThecodingMachine/Safe ^1 webonyx/graphql-php ^14.2 require (dev) Bensampo/Laravel-enum ^1.28.3 || ^2 || ^3 ergebnis/composer-normalize ^2.2.2 Laravel/framework 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 Laravel/Legacy-Factories ^1.0 Laravel/Lumen-Framework 5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8 Laravel/scout ^7 || ^8 mll-lab/graphql-php-scalars ^4 mockery/mockery ^1.0 NUNOMADURO/Larastan ^0.6 orchestra/testbench 3.6.* || 3.7.* || 3.8.* || 3.9.* || ^4 || ^5 || ^6 phpbench/phpbench ^0.17 phpstan/phpstan-mockery ^0.12.5 phpunit/phpunit ^7.5 || ^8.4 predis/predis ^1.1 pusher/pusher-php-server ^3.2 Rector/Rector ^0.7.64 ThecodingMachine/phpstan-safe-rule ^1.0 Suggests Bensampo/Laravel-Enum Convenient Enum Definitions That Can Easily Be Registered in Your Schema Laravel/scout required for the @Search directive MLL-LAB/GraphQL-PHP-Scalars useful scalar types, required for @WhereConditions MLL-LAB/Laravel-GraphQL-Playground GraphQL IDE for Better Development Workflow - Integrated with Laravel PS e:\wwwroot\object>
8. Execute request: “query”: “query{ onlineStoreEtheme(themeid: “vogue”){ id editable createAt PublishAt }”, when the response Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in e:\\wwwroot\\object\\vendor\\nuwave\lighthouse\src\execution\reportingErrorHandler.php on line 38.
9. Execute the composer remove nuwave/lighthouse command to uninstall nuwave/lighthouse. Execute the composer require nuwave/lighthouse:4.18.0 command to install nuwave/lighthouse. Specify the exact version of the package. Error still reported: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 25 .
<?php
namespace nuwave\lighthouse\execution;
use closure;
use GraphQL\Error\Error;
Use Illuminate\Contracts\Debug\ExceptionHandler;
/**
* Report errors through the default exception handler configured in Laravel.
*/
Class ReportingErrorHandler Implements ErrorHandler
{
public static function handle(error $error, closure $next): Array
{
// client-safe errors are assumed to be something that a client can handle
// or is expected to happen, e.g.
if ($error->isClientSafe()) {
return $next($error);
}
// Todo inject through constructor once is non-static
/** @var \illuminate\contracts\debug\exceptionhandler $reporter */
$reporter = app(ExceptionHandler::Class);
$reporter->report($error->getprevious()); // @phpsstan-ignore-line todo remove when supporting laravel 7 and upwards
return $next($error);
}
}
10. Execute the composer remove nuwave/lighthouse command to uninstall nuwave/lighthouse. Execute the composer require nuwave/lighthouse:~4.10.1 command to install nuwave/lighthouse. The tilde operator ~4.10.1 is equivalent to >=4.10.1,<4.11.4.10.1 The version no longer exists: \vendor\nuwave\lighthouse\src\execution\reportingErrorHandler.php . Request again, 200 in response. Tip: Return value of modules\\themesetting\\bridge\\gasterLaravelTheme\\FilerawSectionSchemaloader::load() must be of the type array, bool returned. in line with expectations. At least when an exception occurs in the program, the specific abnormal situation can be clearly positioned. as shown in Figure 7
{
"errors":[
{
"debugmessage": "return value of modules\\themesetting\bridge\\gasterLaravelTheme\\FilerawSectionSchemaloader::load() must be of the type array,
"message": "internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 2,
"column": 3
}
]#ATFP_CLOSE_Translate_span#,
"path":[
"onlinestoretheme"
]#ATFP_CLOSE_Translate_span#,
"trace":[
{
"file": "e:\wwwroot\\object\\modules\\themesetting\schema\\builder\\themebuilder.php",
"line": 86,
"call": "Modules\\ThemeSetting\\Bridge\\GasterLaravelTheme\\FilerawSectionSchemaLoader::load(Header)"
},
{
"file": "E:\\wwwroot\\object\\modules\\themesetting\bridge\bridge\\gasterLaravelTheme\\FileThemesChemaloader.php",
"line": 43,
"call": "modules\\themesetting\schema\\builder\\themebuilder::build(array(1), instance of Modules\\ThemeSetting\schema\dto\\theme)"
},
{
"file": "e:\wwwroot\\object\\modules\\themestore\resolver\\onlinestorethemeresolver.php",
"line": 39,
"call": "Modules\\ThemeSetting\Bridge\\GasterLaravelTheme\\FileTheMesChemaLoader::loadSchema()"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse e\\src\\schema\\directives\FieldDirective.php",
"line": 58,
"call": "modules\\themestore\\resolver\\onlineStoreEthemeResolver::__invoke(null, array(2), instance of Nuwave\Lighthouse\Schema\Context, instance of GraphQL\\Type\Definition\ResolveInfo)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src\schema\\factories\\fieldfactory.php",
"line": 174,
"call": "Nuwave\lighthouse\schema\\directives\\fieldDirective: :nuwave\lighthouse\schema\\directives\{closure}(null, Array(1), instance of nuwave\\lighthouse\schema\context, instance of graphql\type\definition\resolveinfo)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\\referenceexecutor.php",
"line": 632,
"call": "nuwave\lighthouse\schema\\factories\\fieldfactory:: nuwave\\lighthouse\schema\\factories\{closure}(null, Array(1), instance of nuwave\\lighthouse\schema\context, instance of graphql\type\definition\resolveinfo)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\\referenceexecutor.php",
"line": 555,
"call": "graphql\\executor\\referenceexecutor::resolveorError(instance of GraphQL\\Type\\Definition\\FieldDefinition, instance of GraphQL\\Language\ast\FieldNode, instance of closure, null, instance of nuwave\\lighthouse\schema\\context, instance of graphql\type\definition\resolveinfo)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\\referenceexecutor.php",
"line": 1247,
"call": "GraphQL\\Executor\\ReferenceExecutor::ResolveField(GraphQLType: query, null, instance of ArrayObject(1), Array(1)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\\referenceexecutor.php",
"line": 257,
"call": "graphql\\executor\\referenceexecutor::executeFields(GraphQLType: query, null, array(0), instance of arrayobject(1)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\src\executor\\referenceexecutor.php",
"line": 208,
"call": "graphql\\executor\\referenceexecutor::executeoperation(instance of GraphQL\\Language\\ast\\OperationDefinitionNode, NULL)
},
{
"file": "E:\\wwwroot\\object\vendor\\webonyx\graphql-php\src\executor\executor.php",
"line": 155,
"call": "graphql\\executor\\referenceexecutor::doexecute()"
},
{
"file": "e:\wwwroot\\object\vendor\\webonyx\graphql-php\src\graphql.php",
"line": 158,
"call": "graphql\\executor\\executor::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\Type\Schema, instance of GraphQL\\Language\ast\\DocumentNode, null, instance of Nuwave\\LightHouse\Schema\Context, Array(0), NULL, null)"
},
{
"file": "e:\wwwroot\\object\vendor\\webonyx\graphql-php\src\graphql.php",
"line": 90,
"call": "GraphQL\\GraphQL::PromiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\Type\Schema,query{\n onlineStoreEtheme(themeid: \"vogue\"){\n id\n editable\n createAt\n publishAt\n }\n}, null, instance of nuwave\\lighthouse\\schema\\context, array(0), null, null, array(29))"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 171,
"call": "GraphQL\\GraphQL::ExecuteQuery(instance of GraphQL\\Type\Schema,query{\n onlineStoreEtheme(themeid: \"vogue\"){\n id\n editable\n createAt\n publishAt\n }\n}, null, instance of nuwave\\lighthouse\\schema\\context, array(0), null, null, array(29))"
},
{
"file": "E:\\wwwroot\\object\vendor\\nuwave\\lighthouse\src\graphql.php",
"line": 110,
"call": "nuwave\\lighthouse\\graphql::executeQuery(query{\n onlineStoreEtheme(themeid: \"vogue\"){\n id\n editable\n createAt\n publishAt\n }\n}, instance of nuwave\\lighthouse\schema\\context, array(0), null, null)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\src \\support\\http\\controllers\\graphqlcontroller.php",
"line": 70,
"call": "nuwave\\lighthouse\\graphql::executeRequest(instance of nuwave\\lighthouse\\execution\\lighthouserequest)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\routing\controller.php",
"line": 54,
"call": "nuwave\\lighthouse\\support\\http\\controllers\\graphqlcontroller::query(instance of nuwave\\lighthouse\\execution\\lighthouserequest)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\s rc\\illuminate\\routing\\controllerDispatcher.php",
"line": 45,
"call": "illuminate\routing\controller::callaction(query, array(1)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\routing\route.php",
"line": 219,
"call": "illuminate\routing\\controllerDispatcher::dispatch(instance of illuminate\\routing\route, instance of nuwave\\lighthouse\support\\http\\controllers\\GraphQlController,query)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\routing\route.php",
"line": 176,
"call": "illuminate\routing\route::runController()"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 681,
"call": "illuminate\routing\route::run()"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 130,
"call": "illuminate\routing\router::illuminate\\routing\{closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\ \src\\support\http\\middleware\\acceptjson.php",
"line": 30,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "nuwave\\lighthouse\\support\\http\\middleware\\acceptJSON::handle(instance of IlluMinate\\Http\\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 105,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 683,
"call": "illuminate\Pipeline\\Pipeline::then(instance of closure)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 658,
"call": "illuminate\routing\router::runRouteWithInStack(instance of illuminate\\routing\route, instance of Illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 624,
"call": "illuminate\routing\router::runRoute(instance of illuminate\\Http\\request, instance of ILUMINATE\\routing\route)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\\illuminate\\routing\\router.php",
"line": 613,
"call": "illuminate\routing\router::dispatchtoroute(instance of illuminate\\http\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 170,
"call": "illuminate\routing\router::dispatch(instance of illuminate\\http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 130,
"call": "illuminate\foundation\http\\kernel::illuminate\\foundation\Http\{closure}(instance of Illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\barryvdh\Laravel -debugbar\\src\\middleware\\InjectDebugBar.php",
"line": 67,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "barryvdh\\debugbar\\middleware\\InjectDebugBar::Handle(instance of illuminate\Http\\request, instance of closure)
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework\src\\illum inate\\foundation\\http\\middleware\\TransformsRequest.php",
"line": 21,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "illuminate\foundation\http\\middleware\\transformsRequest::handle(instance of IlluMinate\\Http\\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework\src\\illum inate\\foundation\\http\\middleware\\TransformsRequest.php",
"line": 21,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "illuminate\foundation\http\\middleware\\transformsRequest::handle(instance of IlluMinate\\Http\\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\framework\src\Illu Minate\\Foundation\\Http\\middleware\\validatePostSize.php",
"line": 27,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "illuminate\foundation\\http\\middleware\\validatePostSize::handle(instance of IlluMinate\\Http\\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\Object\Vendor\Laravel\Framework\src\Illumina te\\foundation\\http\\middleware\\checkFormaIntenanceMode.php",
"line": 63,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "illuminate\foundation\\http\\middleware\\checkFormaintenanceMode::handle(instance of IlluMinate\\Http\\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\object\vendor\fideloper\proxy\src\\trustproxies.php",
"line": 57,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "Fideloper\Proxy\\TrustProxies::handle(instance of illuminate\\Http\Request, instance of closure)"
},
{
"file": "E:\\WWWRoot\\Object\Vendor\Dingo\Api\src\Http\Middleware\\request.php",
"line": 111,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 171,
"call": "Dingo\\API\\Http\\middleware\\request::handle(instance of illuminate\\http\request, instance of closure)"
},
{
"file": "E:\\wwwroot\\object\\vendor\laravel\framework\src\\illuminate\\pipeline\\pipeline.php",
"line": 105,
"call": "illuminate\Pipeline\\Pipeline::Illuminate\\Pipeline\\{Closure}(instance of illuminate\\Http\\request)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 145,
"call": "illuminate\Pipeline\\Pipeline::then(instance of closure)"
},
{
"file": "E:\\wwwroot\\object\\vendor\\Laravel\framework \src\\illuminate\\foundation\http\\kernel.php",
"line": 110,
"call": "illuminate\foundation\\http\\kernel::sendRequestThroughHrouter(instance of Illuminate\\Http\\request)"
},
{
"file": "e:\\wwwroot\\object\\public\\index.php",
"line": 57,
"call": "illuminate\foundation\http\\kernel::handle(instance of illuminate\\http\\request)"
}
]#ATFP_CLOSE_Translate_span#
}
],
"data": {
"onlinestoreetheme": null
}
}
11. The version of Nuwave/Lighthouse: 4.10.2. as shown in Figure 8
PS e:\wwwroot\object> composer require nuwave/lighthouse:~4.10.1 EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d ./composer.json has been updated EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d running composer update nuwave/lighthouse Loading composer repositories with package information Updating dependencies lock file operations: 2 installs, 0 updates, 0 removals - Locking Nuwave/Lighthouse (4.10.2) - Locking Webonyx/GraphQL-PHP (v0.13.9) Writing lock file Installing dependencies from lock file (inclusion require-dev) Package operations: 2 installs, 0 updates, 0 removals - downloading nuwave/lighthouse (4.10.2) - Installing Webonyx/GraphQL-PHP (v0.13.9): Extracting Archive - Installing Nuwave/Lighthouse (4.10.2): Extracting Archive 4 Package Suggestions were added by new dependencies, use `Composer suggesting to see details. Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested. Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. GENERATING OPTIMIZED AUTOLOAD FILES > google\task\composer::cleanup class tests\feature\loginapIpostCartPaymentTest located in E:/WWWRoot/Object/Tests\Feature\ApiCartPaymentTest.php does not comply with PSR-4 autoloading standard. skipping. class tests\feature\loginapippostcarttest located in e:/wwwroot/object/tests\feature\apicarttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class tests\feature\logingetpaymenttest located in e:/wwwroot/object/tests\feature\paymenttest.php does not Comply with PSR-4 Autoloading Standard. skipping. class SOFA\Eloquence\Searchable\Searchable located in E:/WWWRoot/Object/Vendor/SOFA/Eloquence-Base/SRC\Contracts\Searchable\Searchable.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\RecommendedProduct\Database\Seeders\LastSalleDatabaseSeeder Located in E:/WWWRoot/Object/Modules\LastSale\Database\Seeders\LastSaleDataBaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. Class Modules\CheckOutPageImage\Database\Seeders\PixelConversionDatabaseSeeder Located in E:/WWWRoot/Object/Modules\PixelConversion\Database\Seeders\PixelConversionDatabaseSeeder.php does not comply with PSR-4 Autoloading Standard. skipping. class modules\themestore\tests\factorytest located in E:/WWWRoot/Object/Modules\ThemeStore\Tests\Unit\FactoryTest.php does not comply with PSR-4 autoloading standard. skipping. > Illuminate\Foundation\ComposerScripts::PostAutoLoadDump > @php artisan package:discover --ansi Discovered Package: arubacao/asset-cdn Discovered Package: Axlon/Laravel-Postal-Code-Validation Discovered Package: BarryVDH/Laravel-DebugBar Discovered Package: BeyondCode/Laravel-dump-Server Discovered Package: BeyondCode/Laravel-er-Diagram-Generator Discovered Package: boaideas/laravel-cli-create-user Discovered Package: CvieBrock/Eloquent-Sluggable Discovered Package: DINGO/API Discovered Package: FideLoper/Proxy Discovered Package: Geneaabs/Laravel-Model-Caching Discovered Package: IGaster/Laravel-Theme Discovered Package: Ignited/Laravel-OmniPay Discovered package: intervention/image Discovered Package: jenssegers/agent Discovered Package: JGrossi/Corcel Discovered Package: Laravel/Passport Discovered Package: Laravel/Scout Discovered Package: Laravel/Socialite Discovered Package: Laravel/Tinker Discovered Package: MaatWebsite/Excel discovered package: mpociot/laravel-apidoc-generator Discovered Package: Nesbot/Carbon Discovered Package: NeObject/Facebook-Conversions-API Discovered Package: NUNOMADURO/COLLISION Discovered Package: Nuwave/Lighthouse Discovered Package: Nwidart/Laravel-Modules Discovered Package: Orangehill/Iseed Discovered Package: OverTrue/Laravel-Pinyin Discovered Package: OverTrue/Laravel-WeChat Discovered Package: S-ICHIKAWA/Laravel-SendGrid-Driver Discovered Package: Sentry/Sentry-Laravel Discovered Package: SocialiteProviders/Manager Discovered Package: SOFA/Eloquence-Base Discovered Package: SOFA/Eloquence-Mutable Discovered Package: Spatie/Laravel-ActivityLog Discovered Package: Spatie/Laravel-Permission Discovered Package: Spatie/Laravel-Query-Builder Discovered Package: Spatie/Laravel-Sitemap Discovered Package: tamayo/Laravel-scout-elastic Discovered Package: Torann/GeoIP Package manifested successfully. 116 packages you are using are looking for funding. Use the `Composer Fund` command to find out more! PS E:\wwwroot\object> composer show nuwave/lighthouse -i EasyWechat-Composer/EasyWechat-Composer contains a composer plugin which is currently not in your allow-plugins config.see https://getcomposer.org/allow-plugins Do you trust "allow-plugins" to composer.json)[y,n,d,?]d You are using the deprecated option "installed". Show all packages. name : nuwave/lighthouse Descript. : Lighthouse is a schema first graphql package for laravel applications. Keywords : API, GraphQL, Laravel, Laravel-GraphQL versions : * 4.10.2 type : library License : MIT License (MIT) (OSI Approved) Homepage : https://lighthouse-php.com source :[git]https://github.com/nuwave/lighthouse.git e9d6c29e38b2dfee1e4c3c9b1eabff4d19029d48 dist :[zip]https://api.github.com/repos/nuwave/lighthouse/ zipball/e9d6c29e38b2dfee1e4c3c9b1eaabff4d19029d48 E9D6C29E38B2DFee1E4C3C9B1EABF4D19029D48 PATH : E:\wwwroot\object\vendor\nuwave\lighthouse Names : Nuwave/Lighthouse Support Issues : https://github.com/nuwave/lighthouse/issues Source : https://github.com/nuwave/lighthouse autoload PSR-4 nuwave\lighthouse\ => src/ requires ext-json * IlluMinate/Contracts 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 illuMinate/http 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 Illuminate/pagination 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 IlluMinate/Routing 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 IlluMinate/Support 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 IlluMinate/Validation 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 php >= 7.1 webonyx/graphql-php ^0.13.2 require (dev) Bensampo/Laravel-enum ^1.28.3 composer/composer 1.10.0-rc as 1.9.3 ergebnis/composer-normalize ^2.2.2 HaydenPierce/class-finder ^0.4.0 Laravel/framework 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 Laravel/Lumen-Framework 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || Dev-Master Laravel/scout ^4.0 || ^5.0 || ^6.0 || ^7.0 mll-lab/graphql-php-scalars ^2.1 mockery/mockery ^1.0 NUNOMADURO/Larastan ^0.4.3 || ^0.5.2 orchestra/database 3.5.* || 3.6.* || 3.7.* || 3.8.* || 3.9.* || ^4.0 || 5.x-dev orchestra/testbench 3.5.* || 3.6.* || 3.7.* || 3.8.* || 3.9.* || ^4.0 || 5.x-dev phpbench/phpbench @dev phpunit/phpunit ^6.5 || ^7.5 || ^8.4 pusher/pusher-php-server ^3.2 Suggests Bensampo/Laravel-Enum Convenient Enum Definitions That Can Easily Be Registered in Your Schema HaydenPierce/class-finder required for the artisan command lighthouse:validate-schema Laravel/scout required for the @Search directive MLL-LAB/GraphQL-PHP-Scalars useful scalar types, required for @WhereConditions MLL-LAB/Laravel-GraphQL-Playground GraphQL IDE for Better Development Workflow - Integrated with Laravel PS e:\wwwroot\object>
12. Search for tag:1.10 on github, there is v4.10.1, 4.10.2, and then 4.10 may continue to increase the tag to fix bugs. as shown in Figure 9








