【发布时间】:2019-09-07 23:09:21
【问题描述】:
我正在使用Laravel websocket written by beyoundcode。
几天后,我连接到myDomain.com/laravel-websockets,第一步解决了。
但是现在,当我触发 event 时,laravel 出现错误:
/public_html/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php
**at line 117-(in my case)-**
这是我的堆栈跟踪截图:
我阅读了这些问题和问题,但对我没有任何帮助:
Laravel Pusher exception: “Illuminate\Broadcasting\BroadcastException”
Exception: Illuminate \ Broadcasting \ BroadcastException No message in PusherBroadcaster.php:119
Laravel pusher Illuminate \ Broadcasting \ BroadcastException No message
但没有一个对我有帮助。
我也看到了这些issue:
PusherBroadcaster exception "Failed to connect to Pusher" when running in queue
基于this comment,我更新了我的php.ini 文件:
[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"
我确实在 localhost 中测试了该场景,一切似乎都很好,我想我的 ssl 有问题,所以为了更详细的信息,我不得不说我正在使用使用 linux centos7 的 vps 和我的控制面板是directadmin,我使用letsencrypt和我的控制面板来使用https。
有谁知道我的问题是什么?
在此先感谢
【问题讨论】:
-
你有解决办法吗?面临同样的问题尝试了所有提到的。