Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Error 500 - Too few arguments #167

Closed
DevRaeph opened this issue Mar 3, 2021 · 0 comments
Closed

Error 500 - Too few arguments #167

DevRaeph opened this issue Mar 3, 2021 · 0 comments

Comments

@DevRaeph
Copy link

DevRaeph commented Mar 3, 2021

Got error 500 when calling "ray('Hello world');"

Log:

[2021-03-03 10:33:07] local.ERROR: Uncaught ArgumentCountError: Too few arguments to function Spatie\Ray\Origin\Origin::__construct(), 2 passed in E:\Development\gassner-webconnect\vendor\spatie\laravel-ray\src\OriginFactory.php on line 30 and exactly 3 expected in E:\Development\gassner-webconnect\vendor\spatie\ray\src\Origin\Origin.php:11
Stack trace:
#0 E:\Development\gassner-webconnect\vendor\spatie\laravel-ray\src\OriginFactory.php(30): Spatie\Ray\Origin\Origin->__construct()
#1 E:\Development\gassner-webconnect\vendor\spatie\ray\src\Payloads\Payload.php(56): Spatie\LaravelRay\OriginFactory->getOrigin()
#2 E:\Development\gassner-webconnect\vendor\spatie\ray\src\Payloads\Payload.php(42): Spatie\Ray\Payloads\Payload->getOrigin()
#3 E:\Development\gassner-webconnect\vendor\spatie\ray\src\Request.php(30): Spatie\Ray\Payloads\Payload->toArray()
#4 [internal function]: Spatie\Ray\Request->Spatie\Ray{closure}()
#5 E:\Development\gassner-webconnect\vendor\spatie\ray\src\Request.php(31): array_map()
#6 E:\Development\gassner-webconnect\vendor\spa {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Uncaught ArgumentCountError: Too few arguments to function Spatie\Ray\Origin\Origin::__construct(), 2 passed in E:\Development\gassner-webconnect\vendor\spatie\laravel-ray\src\OriginFactory.php on line 30 and exactly 3 expected in E:\Development\gassner-webconnect\vendor\spatie
ay\src\Origin\Origin.php:11
Stack trace:
#0 E:\Development\gassner-webconnect\vendor\spatie\laravel-ray\src\OriginFactory.php(30): Spatie\Ray\Origin\Origin->__construct()
#1 E:\Development\gassner-webconnect\vendor\spatie
ay\src\Payloads\Payload.php(56): Spatie\LaravelRay\OriginFactory->getOrigin()
#2 E:\Development\gassner-webconnect\vendor\spatie
ay\src\Payloads\Payload.php(42): Spatie\Ray\Payloads\Payload->getOrigin()
#3 E:\Development\gassner-webconnect\vendor\spatie
ay\src\Request.php(30): Spatie\Ray\Payloads\Payload->toArray()
#4 [internal function]: Spatie\Ray\Request->Spatie\Ray\{closure}()
#5 E:\Development\gassner-webconnect\vendor\spatie
ay\src\Request.php(31): array_map()
#6 E:\Development\gassner-webconnect\vendor\spa at E:\Development\gassner-webconnect\vendor\spatie
ay\src\Origin\Origin.php:11)
[stacktrace]
#0 {main}
"}

@spatie spatie locked and limited conversation to collaborators Mar 3, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants