Skip to content

fix: use Response instead of StreamingResponse for trace download end…#81

Merged
Ricky-RL merged 1 commit intomainfrom
fix-download-bugs
Apr 17, 2026
Merged

fix: use Response instead of StreamingResponse for trace download end…#81
Ricky-RL merged 1 commit intomainfrom
fix-download-bugs

Conversation

@Ricky-RL
Copy link
Copy Markdown
Collaborator

slowapi middleware buffers http.response.start to inject rate-limit headers, which conflicts with StreamingResponse — causing RuntimeError when the body arrives before the start message is flushed. Replace the single-yield generator with a plain Response that builds the zip in memory first.

…point

slowapi middleware buffers http.response.start to inject rate-limit headers,
which conflicts with StreamingResponse — causing RuntimeError when the body
arrives before the start message is flushed. Replace the single-yield generator
with a plain Response that builds the zip in memory first.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evalhub Ready Ready Preview, Comment Apr 17, 2026 9:14am

@Ricky-RL Ricky-RL merged commit cc85aa2 into main Apr 17, 2026
2 of 5 checks passed
@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 high

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
ErrorProne 1 high

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

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.

1 participant