question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make MAX_CONTENT_LENGTH configurable

See original GitHub issue

We have a use-case that often requires request payloads larger than the current MAX_CONTENT_LENGTH (https://github.com/GoogleCloudPlatform/functions-framework-python/blob/master/src/functions_framework/__init__.py#L41).

Functions Framework is intended to be run on K8ts or Cloud Run, both of which can be configured to handle larger requests than the current MAX_CONTENT_LENGTH, so configuring it to be larger would open up the library for more use cases.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grantcommented, Aug 26, 2022

Hi @grant, I have implemented this feature and submitted the PR in #196. Please take a look when you are free, thank you.

Thanks @t510599. I’ll defer the PR review to @anniefu.

1reaction
asrinivacommented, Feb 19, 2021

Yeah this is strictly as a guard for GCF, as you say I think the quota would be enforced elsewhere in the stack. I think it can be safely removed. Either that or we could potentially set this conditionally on GCF?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Increasing maxContentLength and maxBodyLength in Axios
1 Answer 1 · 1. You were right, the issue was with IIS configuration: IIS-->Request filtering-->Maximum allowed content length · 1. Excellent, ...
Read more >
maxContentLength configuration could slowdown request
The bug here is that axios is calling Buffer.concat(responseBuffer).length everytime it gets a chunk to make sure that total content length is ...
Read more >
Changing maxAllowedContentLength - MSDN - Microsoft
User1745037820 posted. I'm using VS.NET 2005 running on Vista. The issue pertains to being able to upload large files in an ASP.
Read more >
Configuring ASP.NET and IIS Request Length for POST Data
The maxAllowedContentLength determines the size of the POST buffer allowed in bytes. Above I've set the value to 500megs. Or you can do...
Read more >
How to: Increase the Maximum File Size for Upload
If you need to upload files that are greater than 28 MB on IIS7+ or on Cloud Services, add a <system.webServer/> node to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found