首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Laravel Pusher http://localhost:8000/broadcasting/auth 404 (未找到)和http://localhost:8000/messages

Laravel Pusher http://localhost:8000/broadcasting/auth 404 (未找到)和http://localhost:8000/messages
EN

Stack Overflow用户
提问于 2017-05-06 22:24:09
回答 1查看 1.4K关注 0票数 0

我正在遵循Pusher-Laravel聊天文档,我做了他们说的一切。当我测试它时,其他用户没有收到消息。我已经取消了BroadCastServiceProvider和im运行队列的注释:listen。当我检查控制台时,给了我这个。

代码语言:javascript
复制
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
app.js:33178 POST http://localhost:8000/broadcasting/auth 404 (Not Found)
ajax @ app.js:33178
PusherAuthorizer.authorize @ app.js:35577
PrivateChannel.authorize @ app.js:35700
Channel.subscribe @ app.js:35769
Pusher.subscribe @ app.js:32811
Pusher.subscribeAll @ app.js:32801
(anonymous) @ app.js:32706
Dispatcher.emit @ app.js:34132
ConnectionManager.updateState @ app.js:36146
connected @ app.js:36082
callback @ app.js:35959
cb @ app.js:36527
tryNextStrategy @ app.js:36342
(anonymous) @ app.js:36392
(anonymous) @ app.js:36248
Handshake.finish @ app.js:35333
onMessage @ app.js:35309
Dispatcher.emit @ app.js:34132
TransportConnection.onMessage @ app.js:34035
socket.onmessage @ app.js:34052
app.js:33211 Pusher : Couldn't get auth info from your webapp : 404
warn @ app.js:33211
xhr.onreadystatechange @ app.js:33173
app.js:712 POST http://localhost:8000/messages 500 (Internal Server Error)
dispatchXhrRequest @ app.js:712
xhrAdapter @ app.js:549
dispatchRequest @ app.js:1230
app.js:774 Uncaught (in promise) Error: Request failed with status code 500
at createError (app.js:774)
at settle (app.js:1308)
at XMLHttpRequest.handleLoad (app.js:614)
EN

回答 1

Stack Overflow用户

发布于 2017-05-16 04:49:24

您是否记得在config/app.php中取消注释App\Providers\BroadcastServiceProvider

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43821582

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档