Azure / Azure/azure-functions-durable-js

ERR_FR_MAX_BODY_LENGTH_EXCEEDED when passing 5MB file

Open
#360 7 comments 0 reactions 0 assignees View on GitHub
Best Practice documentation P1
Dominant language
TypeScript
Stars
142
Forks
66
Avg merge
3d 19h
Merged PRs (30d)
4

Description

**Describe the bug**
I want to build a durable function in typescript. This function will take a big json file(it can go between 0-20 MB) and then do some processing with the data from the JSON file.

I use postman to provide a form-data with my file and start the orchestrator.
Below exception is thrown:
Exception: Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit
Stack: Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit

**Investigative information**

- Durable Functions extension version: [2.*, 3.0.0)
- durable-functions npm module version: 1.5.4
- Language (JavaScript/TypeScript) and version: 4.0.0
- Node.js version:14.19.1

***If deployed to Azure App Service***

- Timeframe issue observed:
- Function App name:
- Function name(s):
- Region:
- Orchestration instance ID(s):

> If you don't want to share your Function App name or Functions names on GitHub, please be sure to provide your Invocation ID, Timestamp, and Region - we can use this to look up your Function App/Function. Provide an invocation id per Function. See the [Functions Host wiki](https://github.com/Azure/azure-webjobs-sdk-script/wiki/Sharing-Your-Function-App-name-privately) for more details.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

> While not required, providing your orchestrator's source code in anonymized form is often very helpful when investigating unexpected orchestrator behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Actual behavior**
A clear and concise description of what actually happened.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Known workarounds**
Provide a description of any known workarounds you used.

**Additional context**

- Development environment (ex. Visual Studio)
- Links to source
- Additional bindings used
- Function invocation IDs

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the TypeScript durable function request with a 5 MB form-data JSON upload from Postman and trace where the request body limit is applied. Confirm whether the reported 0–20 MB input is supported, then add a regression test or document the limitation and workaround; the report names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, postman, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.