Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 8 requires Guzzle 7.0.1 #317

Closed
patrickomeara opened this issue Sep 9, 2020 · 5 comments
Closed

Laravel 8 requires Guzzle 7.0.1 #317

patrickomeara opened this issue Sep 9, 2020 · 5 comments

Comments

@patrickomeara
Copy link

The minimum Guzzle requirement for Laravel 8, is Guzzle 7.0.1

There is no installable set, see below

Steps to reproduce (as granular as possible, including screenshots where appropriate)

composer global require laravel/installer
laravel new laravel8 && cd laravel8
composer require intercom/intercom-php php-http/guzzle6-adapter

Logs

 Problem 1
    - Installation request for php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[2.x-dev, v2.0.0, v2.0.1].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle (locked at 7.0.1, required as ^7.0.1) -> satisfiable by guzzlehttp/guzzle[7.0.1].
@GabrielAnca
Copy link
Contributor

GabrielAnca commented Sep 9, 2020

Hi @patrickomeara 👋 It seems there is no support for Guzzle 7 in HTTPlug at the moment.

Luckily this should not be a problem, I think you should be able to use intercom-php with a different HTTP client, for example cURL:

composer require intercom/intercom-php php-http/curl-client

That way our library won't use Guzzle at all and the conflict should be gone

@patrickomeara
Copy link
Author

Thanks so much @GabrielAnca that worked a treat.

@baj84
Copy link

baj84 commented Aug 2, 2021

Hi @patrickomeara and @GabrielAnca do I need to do anything to tell intercom-php to use the curl client instead of guzzle?

@patrickomeara
Copy link
Author

Hi @baj84 You shouldn't need to do anything special after requiring php-http/curl-client

Do you have an error you can share?

@baj84
Copy link

baj84 commented Aug 2, 2021

@patrickomeara I was getting a 502 Bad gateway error, but this was due to malformed post request. It's all good now - thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants