Skip to content

Conversation

@mbabker
Copy link
Contributor

@mbabker mbabker commented Oct 5, 2020

As noted in Guzzle's upgrade document, in Guzzle 7 GuzzleHttp\Exception\ConnectException now extends from GuzzleHttp\Exception\TransferException instead of GuzzleHttp\Exception\RequestException, which now causes a fatal error in the rejected callback because ConnectException is no longer an instance of RequestException. This change allows for ConnectException to be handled when using Guzzle 7 while remaining B/C with Guzzle 6.

As noted in Guzzle's [upgrade document](https://github.com/guzzle/guzzle/blob/master/UPGRADING.md), in Guzzle 7 `GuzzleHttp\Exception\ConnectException` now extends from `GuzzleHttp\Exception\TransferException` instead of `GuzzleHttp\Exception\RequestException`, which now causes a fatal error in the rejected callback because ConnectException is no longer an instance of RequestException.  This change allows for ConnectException to be handled when using Guzzle 7 while remaining B/C with Guzzle 6.
@milewski
Copy link
Contributor

Can this be merged? currently, this package is only working if I include the changes to this PR

@Nielsvanpach
Copy link
Contributor

Thanks!

@Nielsvanpach Nielsvanpach merged commit 9aa452e into spatie:master Jan 14, 2021
@Nielsvanpach
Copy link
Contributor

Release in v4.0.1

@mbabker mbabker deleted the patch-1 branch January 14, 2021 13:10
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

Successfully merging this pull request may close these issues.

3 participants