fix: pin starlette<1.4.0 to resolve Streamlit Cloud GZip middleware crash - #160
Merged
Conversation
elninad
self-requested a review
August 5, 2026 13:51
upstox-security-review
approved these changes
Aug 5, 2026
PradeepJaiswar
force-pushed
the
fix/search-mcx
branch
from
August 5, 2026 13:54
c61d384 to
1bd1dd2
Compare
elninad
approved these changes
Aug 5, 2026
upstox-security-review
approved these changes
Aug 5, 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.
The interactive examples app crashed on Streamlit Cloud with a repeating traceback on every
request and health check:
TypeError: GZipResponder.init() missing 1 required keyword-only argument:
'thread_minimum_size'
Root cause
interactive_examples/requirements.txt pinned nothing, so uv resolved the newest transitive
dependencies — including Starlette 1.4.0. Streamlit 1.61.0's _MediaAwareGZipResponder calls
Starlette's GZipResponder.init without the thread_minimum_size kwarg that Starlette 1.4.0 made
required. Streamlit doesn't cap Starlette in its own metadata, so nothing prevented the
incompatible resolution, and every request 500s inside the GZip middleware.
Change
Starlette whose GZipResponder signature still matches Streamlit's call.
Notes
The pin is a targeted cap on the Starlette version the deploy log proved broken. If a redeploy
still fails, the more robust fallback is to pin the full streamlit + starlette version matrix to a
known-good combination.