Skip to content

fix: pin starlette<1.4.0 to resolve Streamlit Cloud GZip middleware crash - #160

Merged
elninad merged 1 commit into
masterfrom
fix/search-mcx
Aug 5, 2026
Merged

fix: pin starlette<1.4.0 to resolve Streamlit Cloud GZip middleware crash#160
elninad merged 1 commit into
masterfrom
fix/search-mcx

Conversation

@PradeepJaiswar

Copy link
Copy Markdown
Contributor

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

  • interactive_examples/requirements.txt — pinned starlette<1.4.0 so Streamlit Cloud resolves a
    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.

@elninad
elninad self-requested a review August 5, 2026 13:51
@elninad
elninad merged commit 888f3a8 into master Aug 5, 2026
4 checks passed
@elninad
elninad deleted the fix/search-mcx branch August 5, 2026 13:55
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