-
Notifications
You must be signed in to change notification settings - Fork 98
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
AuthError after migrating from Laravel 10 to 11 on Private Channel #284
Comments
Hey @jonjakoblich, which URL is being requested when that error is returned? |
@joedixon Home page. |
Thanks, but I meant is that request failing on the |
@joedixon I'm attaching a few additional screenshots here of the broadcasting/auth endpoint. Hopefully this helps. Let me know if you need something else. |
I'm sorry, it's still not clear to me where the error is being generated. Are any of the network requests returning failed status codes? |
@joedixon No, they are not. The blue highlighted request in each of those screenshots is the request. You can see the 101 status in the first one (the web socket connection I believe) and the 200 status in the successive ones on each (the /broadcasting/auth endpoint). The screenshots are from Firefox Developer Edition. Beyond that, I've not been able to trace the error. It looks like it connects to the /broadcasting/auth endpoint, gets a 200 response, but not the anticipated data back. I don't know if you've had a chance to clone and install the demo repo I provided, but that does illustrate the issue when using Laravel Herd. I have not tried other setups. |
Reverb Version
1.4.4
Laravel Version
11.35.1
PHP Version
8.3.12
Description
After having an existing Laravel 10 application, and following the migration steps to upgrade to Laravel 11, I get the following error when listening to a private channel.
Object { type: "AuthError", error: "JSON returned from channel-authorization endpoint was invalid, yet status code was 200. Data was: ", status: 200 }
This private channel was previously working without error before upgrading.
This is occurring on my machine running Laravel Herd.
Steps To Reproduce
Demo repo: https://github.com/jonjakoblich/reverb-10
Steps taken in repository
To reproduce
npm run build
broadcast(new MyTestEvent(User::find(1)));
The text was updated successfully, but these errors were encountered: