Open ankitjain28may opened 6 years ago
Showing this error even i updated the credentials--
Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Did you forget to specify the cluster when creating the Pusher instance? App key 760cfdcc10984ce27838 does not exist in this cluster."}}}
app.js:33139:19
The connection to wss://ws-eu.pusher.com/app/760cfdcc10984ce27838?protocol=7&client=js&version=4.0.0&flash=false was interrupted while the page was loading.
Did you you specify your Pusher app credentials inside .env
? Please read the project readme.
yes
@ankitjain28may, it is probably because you entered the wrong Pusher Key. Check your config file and .env file.
@ammezie , please correct the following errors in the code:
npm run ...
functions. Solve it as shown https://github.com/JeffreyWay/laravel-mix/issues/478window.Pusher = require('pusher-js');
on bootstrap.jsBroadcastException on line 106
. Still battling it, and it is making the real time not to manifest itself@gthuo you can submit a PR to this effect.
Showing this error i dont kow what this exactly means ....please can u help to solve--
Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Did you forget to specify the cluster when creating the Pusher instance? App key 51611bdaceeaaa93b355 does not exist in this cluster."}}} app.js:33139:19 The connection to wss://ws-eu.pusher.com/app/51611bdaceeaaa93b355?protocol=7&client=js&version=4.0.0&flash=false was interrupted while the page was loading.
Make sure you specify the right app key in the right cluster
In broadcasting.php encrypted should be false for localhost, only user true when you are on https:/. thanks https://laracasts.com/discuss/channels/laravel/laravel-54-event-broadcasting-not-work-with-echo-vuejs I have had the same
\public\js\app.js
window.Echo = new WEBPACK_IMPORTED_MODULE_0_laravelechodefault.a({ broadcaster: 'pusher', key: Laravel.pusherKey, cluster: 'eu', encrypted: true });
cluster is hardcoded here , change restart the php artisan serve and it will work
https://github.com/ccmelas/ChatBox
conversations implemented as well , check this repo
var pusher = new Pusher('API_KEY_HERE', {
cluster: 'ap2',
encrypted: false,
});
Just put your app key 'API_KEY_HERE' here.
You will need to provide the errors you having.