## TL;DR

The fix shipped in netlify-cli v12.2.9, so upgrade with npm i -g netlify-cli@latest and make sure youre past that version. A maintainer pointed at the fixed release and a user confirmed it.

## Steps

1. My Next.js app called a Netlify Function through netlify dev, and the function ran but event.body was always undefined. The exact same function deployed to Netlify parsed the body correctly. The thread is from December 2022. A maintainer pointed at the fixed release and a user confirmed it. Closed the same month.

2. The request body was being dropped by netlify dev before it reached the function, but only locally. The fix shipped in netlify-cli v12.2.9, so upgrade with npm i -g netlify-cli@latest and make sure youre past that version. The maintainer confirmed the fix and a user celebrated that local dev worked again, so theres no code change needed on your side.

## When to use

You are seeing this: My Next.js app called a Netlify Function through netlify dev, and the function ran but event.body was always undefined. Use this skill when you run into "Netlify Functions not receiving a body in local dev (works when deployed)".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: netlify-cli v12.2.9. If you are on something much newer or older, the details may have shifted.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/netlify/cli/issues/5030
