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

ArgumentCountError: Too few arguments to function Statamic\Providers\RouteServiceProvider::Statamic\Providers\{closure}(), 1 passed and exactly 2 expected #65

Closed
MariusSpring opened this issue Jun 7, 2022 · 0 comments · Fixed by statamic/cms#6169

Comments

@MariusSpring
Copy link

MariusSpring commented Jun 7, 2022

Hi,

I'm getting an odd error from the RouteServiceProvider when the collaboration package attempts to hit /auth for authorizing broadcasting. I can't figure out why this is.

Request POST /broadcasting/auth
socket_id=135853.30805883&channel_name=presence-entry.6dbca0a3-b33e-4382-bd5c-f83e2f4fe74b.default

Error

ArgumentCountError: Too few arguments to function Statamic\Providers\RouteServiceProvider::Statamic\Providers\{closure}(), 1 passed and exactly 2 expected in file C:\Users\marius\OneDrive\Desktop\kunder - custom\redacted\vendor\statamic\cms\src\Providers\RouteServiceProvider.php on line 167

#0 [internal function]: Statamic\Providers\RouteServiceProvider->Statamic\Providers\{closure}('default')
#1 C:\Users\marius\OneDrive\Desktop\kunder - custom\redacted\vendor\laravel\framework\src\Illuminate\Broadcasting\Broadcasters\Broadcaster.php(192): call_user_func(Object(Closure), 'default')
#2 C:\Users\marius\OneDrive\Desktop\kunder - custom\redacted\vendor\laravel\framework\src\Illuminate\Broadcasting\Broadcasters\Broadcaster.php(173): Illuminate\Broadcasting\Broadcasters\Broadcaster->resolveExplicitBindingIfPossible('site', 'default')
#3 C:\Users\marius\OneDrive\Desktop\kunder - custom\redacted\vendor\laravel\framework\src\Illuminate\Broadcasting\Broadcasters\Broadcaster.php(107): Illuminate\Broadcasting\Broadcasters\Broadcaster->resolveBinding('site', 'default', Array)
#4 [internal function]: Illuminate\Broadcasting\Broadcasters\Broadcaster->Illuminate\Broadcasting\Broadcasters\{closure}('default', 'site')
#5 C:\Users\marius\OneDrive\Desktop\kunder - custom\redacted\vendor\laravel\framework\src\Illuminate\Collections\Collection.php(695): array_map(Object(Closure), Array, Array)
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

Successfully merging a pull request may close this issue.

1 participant