Comments (7)
@phuongphally ans @rodrigosaavedra I hade the same issue. After turning on debug mode in config/pusher.php I found out I was getting a false
because of an 'Unknown auth key'. Turns out I needed to set the cluster.
Adjusting your pusher.php config to somehting like this will probably resolve;
'main' => [
'auth_key' => ENV('PUSHER_APP_KEY'),
'secret' => ENV('PUSHER_APP_SECRET'),
'app_id' => ENV('PUSHER_APP_ID'),
'options' => [
'debug' => ENV('PUSHER_DEBUG_MODE'),
'cluster' => 'eu' // Add this setting
],
'host' => null,
'port' => null,
'timeout' => null,
],
Related issues/links:
#11 - Support for cluster name
Cluster setting: https://stackoverflow.com/questions/39132028/pusher-in-php-do-not-send-events-unknown-auth-key
from pusher-http-laravel.
Actually for me the issue was having the option encrypted
set to true (as in the example code from Pusher).
I've changed it to false, and it worked.
'encrypted' => false
from pusher-http-laravel.
You need to provide a lot more information if you want our help. Just saying something doesn't work or returns a specific value wont get you anywhere.
from pusher-http-laravel.
I can not send message send to pusher console or client JavaScript.
I can not see any errors .
I used $result = Pusher::trigger('my-channel', 'my-event', ['message' => 'going']);
dd($result);
output : false.
from pusher-http-laravel.
Try asking in the official Pusher PHP repository. This is just a Laravel bridge.
from pusher-http-laravel.
@phuongphally Did you manage to send the trigger? I have the same problem thanks
from pusher-http-laravel.
CLUSTER=eu
from pusher-http-laravel.
Related Issues (20)
- Using Pusher Notify does not work HOT 1
- I can not install this package in laravel 5.4 HOT 8
- config/pusher.php vs config/broadcasting.php HOT 3
- Pusher cluster for Cameroon-Africa HOT 3
- Class 'Pusher\Pusher' not found HOT 21
- add Arabic text on image using GD PHP HOT 1
- Error on installing on Laravel 5.4 HOT 4
- Install error on laravel 5.4 HOT 2
- Install error on laravel 5.6 HOT 3
- Class 'Pusher\Laravel\PusherServiceProvider' not found HOT 2
- Pusher::trigger always false in laravel 5.6 HOT 1
- Set up the new GitHub Hook for Packagist HOT 4
- Pusher beams integration HOT 2
- cannot sign up in pusher website HOT 1
- Update for Laravel 5.8 HOT 2
- Installation Failed on Laravel 5.8
- Deprecate this SDK HOT 11
- pusher-http-laravel not compatible with Laravel v6.0.3
- Inconsistent Triggering Events HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pusher-http-laravel.