Release/10.3.2#3354
Merged
Merged
Conversation
`AxonMiddleware.preprocess` previously wrapped any `Exception` from URL
path parsing and `Synapse.from_headers` as `InvalidRequestNameError` /
`SynapseParsingError`. This swallowed unrelated infrastructure failures
(e.g. `RuntimeError`, `MemoryError`, real bugs in starlette or pydantic
plugins) and lost their original traceback, surfacing them as misleading
"malformed request" errors.
- Narrow the path-parse catch to `(IndexError, AttributeError)` — the
only failures `request.url.path.split("/")[1]` can realistically
produce.
- Narrow the synapse-parse catch to `(ValidationError, TypeError,
ValueError)` — the realistic failure modes of pydantic model
construction from header inputs.
- `raise ... from e` on both paths so the original exception remains on
`__cause__` for debugging.
- Regression tests assert that `ValidationError` is wrapped with
`__cause__` set and that an unrelated `RuntimeError` propagates
unchanged.
Mirrors the exception-narrowing pattern used in #3318 for
`get_external_ip`.
…vement Fix `--help` hijacking on import bittensor
Hopefully, this is a fix for the flaky e2e test
…narrowing fix(axon): narrow preprocess exception handling and chain causes
…extrinsic's cache-incrementing fallback
…once Mev Shield Nonce Increment Fix
…stream-test-fixes Test Fixes
…once Use the public API for clearing nonce cache
10.3.2: Version + changelog
|
Bittensor SDK virtual environment sizes by Python version: |
1 similar comment
|
Bittensor SDK virtual environment sizes by Python version: |
basfroman
approved these changes
May 15, 2026
ibraheem-abe
approved these changes
May 15, 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.
10.3.2 /2026-05-15
What's Changed
--helphijacking on import bittensor by @basfroman in Fix--helphijacking on import bittensor #3347New Contributors
Full Changelog: v10.3.1...v10.3.2