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

Handle response too large when deployed to Cloud Run #380

Open
MrOrz opened this issue Jan 2, 2024 · 0 comments
Open

Handle response too large when deployed to Cloud Run #380

MrOrz opened this issue Jan 2, 2024 · 0 comments

Comments

@MrOrz
Copy link
Member

MrOrz commented Jan 2, 2024

When serving 5min video on cloud run, we may encounter this:
圖片
Followed by a server restart.

It is possible that we are hitting the 32MB limit in https://cloud.google.com/run/quotas

Using chunked encoding may solve the issue - simonw/datasette#749 When chunked encoding is used, Content-length header is omitted. However, rumors-api requires content-length to do proper processing, thus it cannot be used.

We may need to try setting up http2 connections instead; which may also involve changing to a HTTP client supporting HTTP/2 (or built-in fetch) on rumors-api.

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

No branches or pull requests

1 participant