Coder Social home page Coder Social logo

Comments (7)

jaap avatar jaap commented on August 15, 2024 1

@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.

fabioduque avatar fabioduque commented on August 15, 2024 1

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.

vinkla avatar vinkla commented on August 15, 2024

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.

phuongphally avatar phuongphally commented on August 15, 2024

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.

vinkla avatar vinkla commented on August 15, 2024

Try asking in the official Pusher PHP repository. This is just a Laravel bridge.

from pusher-http-laravel.

rodrigosaavedra avatar rodrigosaavedra commented on August 15, 2024

@phuongphally Did you manage to send the trigger? I have the same problem thanks

from pusher-http-laravel.

kamhawy4 avatar kamhawy4 commented on August 15, 2024

CLUSTER=eu

from pusher-http-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.