问题
laravel- 5.6 Php - 7.2 pusher - 3.0
when try to connect with pusher:
回答1:
You should provide more details to your question so others have a better picture of what might cause the problem.
But I ran into the exact same problem recently and might be able to help. In my instance, this problem is caused by composer pulling in pusher dev-lib instead of published version when I run composer require pusher/pusher-php-server "~3.0"
. It happens because I don't have php-curl
installed in my setup. After installing it, I remove the current dev-lib, rerun composer require pusher/pusher-php-server "~3.0"
and it works like a charm.
来源:https://stackoverflow.com/questions/49003306/pusher-exception-httpexception-bad-request