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

GuzzleHttp 7 support #1059

Closed
caugner opened this issue Aug 3, 2020 · 2 comments
Closed

GuzzleHttp 7 support #1059

caugner opened this issue Aug 3, 2020 · 2 comments

Comments

@caugner
Copy link

caugner commented Aug 3, 2020

Background: I'm using sentry/sentry-laravel (1.8.0) in my project as well as guzzlehttp/guzzle.

Problem: I would like to upgrade to Guzzle 7, but unfortunately sentry/sdk blocks this due to its dependency on php-http/guzzle6-adapter (which requires guzzlehttp/guzzle ^6.0).

Is there any chance to resolve this blockage?

@stayallive
Copy link
Collaborator

stayallive commented Aug 3, 2020

I've posted a workaround for this earlier today: getsentry/sentry-laravel#360 (comment).


For anyone not using Laravel these composer.json changes should work for you until there is a GuzzleHttp 7 compatible HTTPlug client implementation:

{
    "require": {
        "sentry/sentry": "^2.4",
        "http-interop/http-factory-guzzle": "^1.0",
        "php-http/curl-client": "^2.0",
        "guzzlehttp/guzzle": "^7.0"
    },
    "replace": {
        "sentry/sdk": "*"
    }
}

@stayallive
Copy link
Collaborator

So. Finally we've updated our sentry/sdk package to no longer use Guzzle (any version) and thus you can install sentry/sentry or the Laravel integration without any changes or workarounds.

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

No branches or pull requests

2 participants