Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected a scalar value as a 2nd argument #19

Open
NoChizPlz opened this issue Aug 28, 2023 · 0 comments
Open

Expected a scalar value as a 2nd argument #19

NoChizPlz opened this issue Aug 28, 2023 · 0 comments

Comments

@NoChizPlz
Copy link

public function replyContent(ApplicationCommandInteractionEvent $event): ?string
{
    Log::debug('Command triggered: ' . $event->getCommandName());
    return  'test';
}

Stacktrace[2023-08-28 15:12:58] local.ERROR: Expected a scalar value as a 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()", "array" given. {"exception":"[object] (InvalidArgumentException(code: 0): Expected a scalar value as a 2nd argument to \"Symfony\\Component\\HttpFoundation\\InputBag::get()\", \"array\" given. at /shared/httpd/converge-bot/converge-bot/vendor/symfony/http-foundation/InputBag.php:31) [stacktrace] #0 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Events/ApplicationCommandInteractionEvent.php(10): Symfony\\Component\\HttpFoundation\\InputBag->get('data', Array) #1 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Events/ApplicationCommandInteractionEvent.php(15): Nwilging\\LaravelDiscordBot\\Events\\ApplicationCommandInteractionEvent->getData() #2 /shared/httpd/converge-bot/converge-bot/app/Listeners/Commands/Discord/Converge/GetAccountInfoCommandListener.php(17): Nwilging\\LaravelDiscordBot\\Events\\ApplicationCommandInteractionEvent->getCommandName() #3 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Support/Traits/HasInteractionListeners.php(38): App\\Listeners\\Commands\\Discord\\Converge\\GetAccountInfoCommandListener->replyContent(Object(Nwilging\\LaravelDiscordBot\\Events\\ApplicationCommandInteractionEvent)) #4 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Support/Traits/HasInteractionListeners.php(77): Nwilging\\LaravelDiscordBot\\Support\\Interactions\\Handlers\\ApplicationCommandHandler->defaultBehaviorResponse(Array, Object(Nwilging\\LaravelDiscordBot\\Events\\ApplicationCommandInteractionEvent)) #5 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Support/Interactions/Handlers/ApplicationCommandHandler.php(48): Nwilging\\LaravelDiscordBot\\Support\\Interactions\\Handlers\\ApplicationCommandHandler->generateResponse(Object(Nwilging\\LaravelDiscordBot\\Events\\ApplicationCommandInteractionEvent), 'Nwilging\\\\Larave...') #6 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Support/Interactions/Handlers/ApplicationCommandHandler.php(30): Nwilging\\LaravelDiscordBot\\Support\\Interactions\\Handlers\\ApplicationCommandHandler->shouldHandleEventExternally(Object(Illuminate\\Http\\Request)) #7 /shared/httpd/converge-bot/converge-bot/vendor/nwilging/laravel-discord-bot/src/Services/DiscordInteractionService.php(50): Nwilging\\LaravelDiscordBot\\Support\\Interactions\\Handlers\\ApplicationCommandHandler->handle(Object(Illuminate\\Http\\Request)) #8 /shared/httpd/converge-bot/converge-bot/app/Http/Controllers/DiscordInteractionController.php(19): Nwilging\\LaravelDiscordBot\\Services\\DiscordInteractionService->handleInteractionRequest(Object(Illuminate\\Http\\Request)) #9 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DiscordInteractionController->handleDiscordInteraction(Object(Illuminate\\Http\\Request)) #10 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction('handleDiscordIn...', Array) #11 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\DiscordInteractionController), 'handleDiscordIn...') #12 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController() #13 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\\Routing\\Route->run() #14 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #15 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #16 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #17 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #18 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(135): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array) #19 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequestUsingNamedLimiter(Object(Illuminate\\Http\\Request), Object(Closure), 'api', Object(Closure)) #20 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'api') #21 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #22 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(800): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #23 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(777): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) #24 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(741): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) #25 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(730): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) #26 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) #27 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) #28 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #29 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #30 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #31 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #32 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #33 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #34 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #35 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #36 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #37 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #38 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #39 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #40 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #41 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #42 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #43 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #44 /shared/httpd/converge-bot/converge-bot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #45 /shared/httpd/converge-bot/converge-bot/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #46 {main} "}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant