build(deps): Replace httpx with httpx2 (DM-4106) - #2818
Merged
Conversation
httpx with httpx2 (DM-4106)httpx with httpx2 (DM-4106)
Contributor
There was a problem hiding this comment.
Code Review
This pull request migrates the SDK's underlying HTTP library from httpx to httpx2 across the codebase and test suites. A critical issue was found in the Pyodide patching helper where calling get_global_async_httpx_client directly can raise a RuntimeError if no event loop is running, which can be resolved by dynamically wrapping the client getter.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2818 +/- ##
==========================================
+ Coverage 93.09% 93.12% +0.03%
==========================================
Files 516 516
Lines 53722 53707 -15
==========================================
+ Hits 50012 50017 +5
+ Misses 3710 3690 -20
🚀 New features to boost your workflow:
|
Contributor
Author
|
|
haakonvt
force-pushed
the
replace-httpx-with-httpx2
branch
2 times, most recently
from
September 7, 2026 15:21
d80e6d0 to
87b8b79
Compare
audunska
previously approved these changes
Sep 8, 2026
audunska
left a comment
Contributor
There was a problem hiding this comment.
"I completely understand all the pyodide dependency hacking"
Contributor
Author
|
🦄 |
haakonvt
enabled auto-merge
September 8, 2026 08:20
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 8, 2026
…rsion Verified locally against Pyodide 0.26.3 (stlite), 0.29.0, and 314.0.0.
haakonvt
force-pushed
the
replace-httpx-with-httpx2
branch
from
September 8, 2026 08:41
87b8b79 to
2fec008
Compare
Contributor
Author
|
🦄 |
haakonvt
enabled auto-merge
September 8, 2026 08:42
audunska
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate SDK from unmaintained
httpxtohttpx2to resolve e.g.authlibdeprecation warnings.Changes
httpxwithhttpx2andpytest-httpxwithhttpx2-pytest.pyodide-httpxpatches in favor of nativehttpx2browser transport (httpx2-jsfetch).