aliyunmq / mq-http-php-sdk

Aliyun Message Queue(MQ) Http PHP SDK
MIT License
74 stars 34 forks source link

Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Exception\ConnectException::hasResponse() #5

Closed zhmm closed 1 year ago

zhmm commented 3 years ago

[2020-12-15 03:52:07 *26589.0] ERROR php_swoole_server_rshutdown (ERRNO 503): Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Exception\ConnectException::hasResponse() in /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Responses/MQPromise.php:45 Stack trace:

0 /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Http/HttpClient.php(94): MQ\Responses\MQPromise->wait()

1 /data/wwwroot/binlog-es-core/vendor/aliyunmq/mq-http-sdk/MQ/MQConsumer.php(84): MQ\Http\HttpClient->sendRequest(Object(MQ\Requests\ConsumeMessageRequest), Object(MQ\Responses\ConsumeMessageResponse))

2 /data/wwwroot/xxx-core/Task/Binlog.php(20): MQ\MQConsumer->consumeMessage(16, 1)

3 /data/wwwroot/xxx-core/sw.php(94): xx\Task\Binlog::getData(16, Array, true)

4 /data/wwwroot/xxx-core/sw.php(76): Server->getBinlogData(0)

5 {main}

thrown in /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Responses/MQPromise.php on line 45

tianc0209 commented 3 years ago

注释掉就那三行能解决

[2020-12-15 03:52:07 *26589.0] ERROR php_swoole_server_rshutdown (ERRNO 503): Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Exception\ConnectException::hasResponse() in /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Responses/MQPromise.php:45 Stack trace:

0 /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Http/HttpClient.php(94): MQ\Responses\MQPromise->wait()

1 /data/wwwroot/binlog-es-core/vendor/aliyunmq/mq-http-sdk/MQ/MQConsumer.php(84): MQ\Http\HttpClient->sendRequest(Object(MQ\Requests\ConsumeMessageRequest), Object(MQ\Responses\ConsumeMessageResponse))

2 /data/wwwroot/xxx-core/Task/Binlog.php(20): MQ\MQConsumer->consumeMessage(16, 1)

3 /data/wwwroot/xxx-core/sw.php(94): xx\Task\Binlog::getData(16, Array, true)

4 /data/wwwroot/xxx-core/sw.php(76): Server->getBinlogData(0)

5 {main}

thrown in /data/wwwroot/xxx-core/vendor/aliyunmq/mq-http-sdk/MQ/Responses/MQPromise.php on line 45

注释掉就那三行能解决