GitLabApiBundle icon indicating copy to clipboard operation
GitLabApiBundle copied to clipboard

No HTTPlug clients found

Open adamfrost839 opened this issue 4 years ago • 4 comments
trafficstars

Running v4.0.1 on symfony 3.4.x I've added php-http/guzzle6-adapter to composer but still getting this error:

No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".

How do I get it to recognize this client?

adamfrost839 avatar Dec 10 '20 14:12 adamfrost839

This error message comes from the Library. Do you already had a look in the PHP Gitlab Library in the correct version: https://github.com/GitLabPHP/Client/tree/9.19.2

If nothing work, you can configure a client in your service yaml and use the http_client configuration option to let the bundle use this http client.

Zeichen32 avatar Dec 10 '20 15:12 Zeichen32

I've added php-http/guzzle6-adapter to composer but still getting this error:

Did you run composer update?

GrahamCampbell avatar Dec 10 '20 17:12 GrahamCampbell

You need to also install http-interop/http-factory-guzzle:^1.0

This solved the problem. Maybe it should be mentioned in readme, as it's not obvious...

adamfrost839 avatar Dec 11 '20 11:12 adamfrost839

In the latest version of this bundle we no longer use the guzzle adapter and use the symfony http client.

@GrahamCampbell But if this is required we should update the library docs for the 9.19 too?

Zeichen32 avatar Dec 11 '20 11:12 Zeichen32