Laravel staging.ERROR:在staging上连接到Pusher失败,但在localhost上工作正常
我最近在登台服务器上通过Laravel staging.ERROR:在staging上连接到Pusher失败,但在localhost上工作正常,laravel,vue.js,pusher,Laravel,Vue.js,Pusher,我最近在登台服务器上通过Pusher: staging.ERROR: Failed to connect to Pusher. {"exception":"[object] (Illuminate\\Broadcasting\\BroadcastException(code: 0): Failed to connect to Pusher. 奇怪的是,在localhost上一切都很正常,而且API消息正在到达Pusher调试控制台。当我尝试在登台时使用相同的代码和
Pusher:
staging.ERROR: Failed to connect to Pusher. {"exception":"[object] (Illuminate\\Broadcasting\\BroadcastException(code: 0): Failed to connect to Pusher.
奇怪的是,在localhost
上一切都很正常,而且API消息正在到达Pusher调试控制台。当我尝试在登台时使用相同的代码和配置执行此操作时,会收到上面的错误消息。我假设这与广播配置有关,但我不确定该怎么做。这是我当前在broadcasting.php
中的推送器配置(.env
配置正常,请仔细检查):
我一直在玩不同的配置选项,比如将useTLS
设置为true
或false
,将scheme
设置为http
或https
,设置curl\u选项
,将encrypted
设置为true
或false
,但我没有得到任何结果,我的消息没有在Pusher调试控制台中注册,即使订阅的事件也正确注册,如下所示:
谢谢你的帮助。如果有人需要有关代码和配置的更多信息,请告诉我。在config/broadcasting.php中更改此行:
'useTLS' => false //Make sure its false
清除缓存:
php artisan cache:clear
请检查以下答案:
在config/broadcasting.php中更改此行:
'useTLS' => false //Make sure its false
清除缓存:
php artisan cache:clear
请检查以下答案: