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

Issue Handling Requests Larger Than 10 MB #927

Closed
emil-1996 opened this issue Jul 31, 2024 · 3 comments
Closed

Issue Handling Requests Larger Than 10 MB #927

emil-1996 opened this issue Jul 31, 2024 · 3 comments

Comments

@emil-1996
Copy link

Description:
When attempting to send a request larger than 10 MB to Mercure, I consistently receive an HTTP/1.1 400 Bad Request error. The request in question is targeting the URL http://mercure:8443/.well-known/mercure.

Details:
The Content-Length header indicates a body size of 16,235,362 bytes.
However, the bytes_read logs show only 10,485,761 bytes being processed before the request fails.

Question:
How can I configure Mercure to accept request bodies larger than 10 MB?

@emil-1996
Copy link
Author

It seems this issue is related to #878.

While I understand that reducing the message size can be a workaround, I believe that the application should not, by default, limit the size of the request a user can make. Perhaps introducing a configurable flag, such as a max request size, might be a more flexible solution.

@dunglas
Copy link
Owner

dunglas commented Aug 1, 2024

This is a Go limitation. Currently it's not possible to bypass it.

@dunglas
Copy link
Owner

dunglas commented Aug 1, 2024

Closing as duplicate of #878.

@dunglas dunglas closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants