问题描述
laravel- 5.6Php-7.2推杆-3.0
laravel- 5.6Php - 7.2pusher - 3.0
当尝试与推杆连接时:
when try to connect with pusher:
推荐答案
您应该为问题提供更多详细信息,以便其他人更好地了解可能导致问题的原因.
You should provide more details to your question so others have a better picture of what might cause the problem.
但是我最近遇到了完全相同的问题,也许可以提供帮助.在我的实例中,此问题是由运行composer require pusher/pusher-php-server "~3.0"
时,作曲者拖入pusher dev-lib而不是发布的版本引起的.发生这种情况是因为我没有在安装程序中安装php-curl
.安装后,我删除了当前的dev-lib,重新运行composer require pusher/pusher-php-server "~3.0"
,它就像一个超级按钮.
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.
这篇关于Pusher \ Exception \ HttpException错误的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!