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

Large response bodies can exceed Cloud Run's response limit #61

Open
jmccollum-woolpert opened this issue Feb 25, 2023 · 2 comments
Open

Comments

@jmccollum-woolpert
Copy link
Contributor

Cloud Run has a hard response body limit of 32MiB. If this limit is reached, the response is blocked and a 500 error is thrown. On the frontend, this can display as a "500 OK" error. Should investigate alternative ways of delivering large solutions or at least throwing a more helpful error to the frontend.

@cmorabito-woolpert
Copy link
Contributor

cmorabito-woolpert commented Feb 27, 2023

To get around that limit, we'd have to use HTTP2 and potentially do some work on the backend to chunk/stream the response.

Configuring Cloud Run to use HTTP2 is trivial, but when I tried I got "too many redirects" errors after the Google Account sign in. So there's probably more to do there with Load Balancer/IAP/etc. to enable HTTP2 through the request path.

@jmccollum-woolpert
Copy link
Contributor Author

Will also want to think about how this impacts the frontend. Solutions this size may be pushing the memory limits of a single tab.

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

2 participants