Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel staging.ERROR:在staging上连接到Pusher失败,但在localhost上工作正常_Laravel_Vue.js_Pusher - Fatal编程技术网

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
请检查以下答案: