Laravel echo 拉威尔回声&x2B;推送授权服务器错误500

Laravel echo 拉威尔回声&x2B;推送授权服务器错误500,laravel-echo,inertiajs,jetstream,pusher-js,Laravel Echo,Inertiajs,Jetstream,Pusher Js,我正在尝试测试和学习拉威尔的回声广播。但是经过一次又一次的尝试,我无法实现我想要的。 它与公共频道一起工作。 但是,当涉及到存在频道时,情况并非如此。 为了解决错误,我做了: 将php内存限制提高到1 GB 我用的是Jetstream和Fortify。也是惰性的 浏览器调试授权头 出错 error: "Unable to retrieve auth string from auth endpoint - received status: 500 from /broadcasting/

我正在尝试测试和学习拉威尔的回声广播。但是经过一次又一次的尝试,我无法实现我想要的。 它与公共频道一起工作。 但是,当涉及到存在频道时,情况并非如此。 为了解决错误,我做了:

将php内存限制提高到1 GB

我用的是Jetstream和Fortify。也是惰性的

浏览器调试授权头

出错

error: "Unable to retrieve auth string from auth endpoint - received status: 500 from /broadcasting/auth. Clients must be authenticated to join private or presence channels. See: https://pusher.com/docs/authenticating_users"
status: 500
App.js

window.Pusher=require('Pusher-js');
window.Echo=新的Echo({
广播员:“推手”,
键:process.env.MIX\u PUSHER\u APP\u键,
集群:process.env.MIX\u PUSHER\u APP\u集群,
是的,
});
window.Echo.join(`chat.1`)
.here((用户)=>{
console.log(用户);
})
.加入((用户)=>{
console.log(user.name);
})
.离开((用户)=>{
console.log(user.name);
})
.错误((错误)=>{
控制台错误(error);
});
BroadcastServiceProvider.php

公共函数启动()
{
广播::路由();
需要基本路径('routes/channels.php');
}
channels.php

Broadcast::channel('chat.{ida}',函数($user,$ida){
如果(auth()->check()){
返回$user->toArray();
}
});
site.net.error.log

[Sun May 16 10:24:49.754522 2021] [fcgid:warn] [pid 14900] [client ip:38966] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard
[Sun May 16 10:26:31.944725 2021] [fcgid:warn] [pid 4715] [client ip:39000] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 861929472) (tried to allocate 262144 bytes) in *sitepath*/private/app_data/vendor/pusher/pusher-php-server/src/Pusher.php on line 840, referer: https://abcabc.net/dashboard
[Sun May 16 10:26:31.954042 2021] [fcgid:warn] [pid 4715] [client ip:39000] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 861929472) (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard
[Sun May 16 10:27:12.115963 2021] [fcgid:warn] [pid 19725] [client ip:39026] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 394264576) (tried to allocate 262144 bytes) in *sitepath*/private/app_data/vendor/pusher/pusher-php-server/src/Pusher.php on line 840, referer: https://abcabc.net/dashboard
[Sun May 16 10:27:12.120752 2021] [fcgid:warn] [pid 19725] [client ip:39026] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 394264576) (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard
[Sun May 16 10:30:19.624249 2021] [fcgid:warn] [pid 14898] [client ip:39066] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 710934528) (tried to allocate 262144 bytes) in *sitepath*/private/app_data/vendor/pusher/pusher-php-server/src/Pusher.php on line 840, referer: https://abcabc.net/dashboard
[Sun May 16 10:30:19.636461 2021] [fcgid:warn] [pid 14898] [client ip:39066] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 710934528) (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard
[Sun May 16 10:30:38.961347 2021] [fcgid:warn] [pid 14898] [client ip:39086] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 551550976) (tried to allocate 262144 bytes) in *sitepath*/private/app_data/vendor/pusher/pusher-php-server/src/Pusher.php on line 840, referer: https://abcabc.net/dashboard
[Sun May 16 10:30:38.963699 2021] [fcgid:warn] [pid 14898] [client ip:39086] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 551550976) (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard
[Sun May 16 10:31:03.040755 2021] [fcgid:warn] [pid 14897] [client ip:39104] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 276824064) (tried to allocate 262144 bytes) in *sitepath*/private/app_data/vendor/pusher/pusher-php-server/src/Pusher.php on line 840, referer: https://abcabc.net/dashboard
[Sun May 16 10:31:03.049553 2021] [fcgid:warn] [pid 14897] [client ip:39104] mod_fcgid: stderr: PHP Fatal error:  Out of memory (allocated 276824064) (tried to allocate 262144 bytes) in Unknown on line 0, referer: https://abcabc.net/dashboard

对于有此问题的人,请查看laravel事件类。配置错误。

我遇到了类似的问题,我通过创建身份验证路由和控制器解决了这个问题。看看我在这篇文章中的解决方案:。

你能分享更多关于错误配置的信息吗?我检查了事件类,发现其中一些丢失了,一些有错误的类名。