This repository was archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 658
[1.x] Error on save in HttpStatisticsLogger #700
Comments
Having the same issue on a recent merge. Argument 1 passed to BeyondCode\LaravelWebSockets\Apps\App::findByKey() must be of the type string, null given, called in .../vendor/beyondcode/laravel-websockets/src/Statistics/Http/Middleware/Authorize.php on line 11 |
Apologies @simonbuehler , you are indeed correct. It does not appear to stop the stats from working though I have a feeling it would stop events being broadcast? |
Getting same issue after
|
@rennokki Fastest way is to change this to look at findBySecret, rather than findByKey, correct? If that works shall I make a PR or can you change? |
Merged
Just opened the PR to revert the change made in #626 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Maybe I am wrong, but I think there is a bug in the HttpStatisticsLogger class. In the Save function the value "key" is not passed to the post request, only secret is present.
This leads to an exception in BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize where the value "key" must be passed since commit e0d8f6a.
The text was updated successfully, but these errors were encountered: