Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): Drop StreamingResponse after issues on latest FastAPI #582

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

fschuch
Copy link
Member

@fschuch fschuch commented Jun 28, 2024

What

  • Drop StreamingResponse after issues on the latest FastAPI
  • Added unit tests that can reproduce the issue, they are passing after the fix

Why

Some interaction between the s3 object from aiboto3 and the StreamingResponse from FastAPI resulted in intermittent errors when retrieving files from get endpoints. The issue was persistent for large files.


Peer Review

Please follow the upstream omnivector documentation concerning
peer-review guidelines.

@fschuch fschuch force-pushed the fschuch/fix-api--routes-to-get-files branch 2 times, most recently from 1522f59 to 60359ad Compare June 28, 2024 18:01
@fschuch fschuch force-pushed the fschuch/fix-api--routes-to-get-files branch from 60359ad to b806865 Compare June 28, 2024 18:02
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.21%. Comparing base (874631a) to head (b806865).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #582      +/-   ##
==========================================
- Coverage   92.22%   92.21%   -0.01%     
==========================================
  Files          83       83              
  Lines        4461     4459       -2     
==========================================
- Hits         4114     4112       -2     
  Misses        347      347              
Flag Coverage Δ
agent 93.41% <ø> (ø)
api 95.28% <ø> (-0.01%) ⬇️
cli 88.48% <ø> (ø)
core 95.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fschuch fschuch requested a review from dusktreader June 28, 2024 18:33
@fschuch fschuch merged commit 1688ec0 into main Jun 28, 2024
12 checks passed
@fschuch fschuch deleted the fschuch/fix-api--routes-to-get-files branch June 28, 2024 23:56
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.

2 participants