Skip to content

Add support for Guzzle 8#3294

Draft
GrahamCampbell wants to merge 1 commit into
aws:masterfrom
GrahamCampbell:guzzle-8
Draft

Add support for Guzzle 8#3294
GrahamCampbell wants to merge 1 commit into
aws:masterfrom
GrahamCampbell:guzzle-8

Conversation

@GrahamCampbell
Copy link
Copy Markdown
Contributor

@GrahamCampbell GrahamCampbell commented May 29, 2026

Guzzle 8 is not yet released, but once it is, getting support in the AWS SDK is important, because it would otherwise block many other projects including Laravel from supporting Guzzle 8.

#3289 already makes a forward-compatible change that makes the SDK compatible with Guzzle 8's stricter requirement that headers be strings or lists of strings. The next change to be aware of is Guzzle 8's changes to the exceptions. The ResponseTransferException exception was added specifically to accommodate the needs of the AWS SDK to want to retry this sub-class of failures, without needing to look at the handler context which is a leaky abstraction that was removed in Guzzle 8.

This PR makes changes to support the old and new exception design, and adjusts version constraints to support both Guzzle 7 and Guzzle 8. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@stobrien89
Copy link
Copy Markdown
Member

Thanks for the work on this @GrahamCampbell. When is the release date for 8?

@GrahamCampbell
Copy link
Copy Markdown
Contributor Author

I did the 7.11.0 release today, along with 6 releases in the other first-party packages with a bunch of deprecations. I'll see how that goes with feedback, and I'll be doing more evaluation of the upgrading of the most popular packages to Guzzle 8. I don't yet have a an exact release date to share. I am hoping it'll be ready early Q3.

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.

2 participants