照亮\ Broadcasting \ BroadcastException没有消息 [英] Illuminate \ Broadcasting \ BroadcastException No message
问题描述
我正在使用
我阅读了这些问题,但对我没有任何帮助
Laravel Pusher例外:"Illuminate \ Broadcasting \ BroadcastException" >
异常:Illuminate \ Broadcasting \ BroadcastException PusherBroadcaster.php中没有消息:119
Laravel推杆Illuminate \ Broadcasting \ BroadcastException没有消息 >
但是他们没有一个对我有帮助.
我也看到了这些 issue
:
PusherBroadcaster异常在队列中运行时无法连接到Pusher"
,并基于此评论,我更新了php.ini
文件与此:
[curl];CURLOPT_CAINFO选项的默认值.这必须是;绝对路径.curl.cainfo ="/etc/pki/tls/certs/ca-bundle.crt"这些选项也进行了测试:curl.cainfo ="/etc/pki/tls/cert.pem"curl.cainfo ="/etc/pki/tls/certs/ca-bundle.crt"
我确实在localhost上测试了该方案,并且一切似乎都很好,我想我的ssl有问题,因此,为了更详细一点,我不得不说我正在使用 vps
使用 linux centos7
,我的控制面板是 directadmin
,我在控制面板中使用了 letsencrypt
来使用 https
./p>
你知道我的问题吗?
预先感谢
就我而言,将我的
cert keys
放在一个 Apache可以访问这些文件的路径 .
我确实使用以下值添加了curl选项数组:
'options'=>['cluster'=>env('PUSHER_APP_CLUSTER'),'encrypted'=>真的,'主机'=>'127.0.0.1','端口'=>6001,'scheme'=>'https','curl_options'=>[CURLOPT_SSL_VERIFYHOST =>0,CURLOPT_SSL_VERIFYPEER =>0,]
然后不要忘记:
php artisan cache:clear
php artisan config:clear
希望这可以治愈您的头痛,因为我的确如此.
I'm using Laravel websocket written by beyoundcode.
After couple of days, I've connected to myDomain.com/laravel-websockets
and first step solved.
But now, when I trigger an event
, laravel has error at this point:
/public_html/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
**at line 117-(in my case)-**
this is my stacktrace screenshot:
I read these questions and issues but nothing worked for me:
Laravel Pusher exception: "Illuminate\Broadcasting\BroadcastException"
Exception: Illuminate \ Broadcasting \ BroadcastException No message in PusherBroadcaster.php:119
Laravel pusher Illuminate \ Broadcasting \ BroadcastException No message
But none of them did help to me.
I saw these issue
too:
PusherBroadcaster exception "Failed to connect to Pusher" when running in queue
and based on this comment, I updated my php.ini
file with this:
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo ="/etc/pki/tls/certs/ca-bundle.crt"
these options tested too:
curl.cainfo ="/etc/pki/tls/cert.pem"
curl.cainfo ="/etc/pki/tls/certs/ca-bundle.crt"
I did test the scenario in localhost and everything seems to be good, I guess I have a problem with my ssl, so just for more detail I have to say I'm using a vps
that use linux centos7
and my control panel is directadmin
and I used letsencrypt
with my control panel to use https
.
Does anyone you know what's my problem?
Thanks in Advance
In my case, the problem was solved when I put my
cert keys
to a path which apache could access to those files.
I did add curl options array with these values:
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true,
'host' => '127.0.0.1',
'port' => 6001,
'scheme' => 'https',
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
]
And then do not forget to:
php artisan cache:clear
php artisan config:clear
Hope this heal your headache because did mine.
这篇关于照亮\ Broadcasting \ BroadcastException没有消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!