laravel-websockets icon indicating copy to clipboard operation
laravel-websockets copied to clipboard

Incorrect error reporting by laravel-websokets

Open Scarle-t opened this issue 3 years ago • 1 comments

We have encountered an issue when starting the websocket server using php artisan websockets:serve while we were investigating the issue for hours with the given clue (which is truncated in laravel.log): "Class Pusher error", we focused on any code error on our side that could possibly cause this error. At the end we found out it is due to laravel-websockets do not have permission to access the SSL certificate, and we only found that out by checking nginx and php error log seeing "SSL handshake error".

Please fix the error reporting by providing some useful error and stacktrace, as well as display errors when it hit these kind of fatal error, what I can only see from running the command is: "Starting the WebSocket server on port 6001" and no error.

Scarle-t avatar Jan 03 '22 05:01 Scarle-t

Feel free to make a PR

PaolaRuby avatar Jan 03 '22 20:01 PaolaRuby