💡Aha!

PayloadTooLargeError: request entity too large

왜 생기나?

body-parser의 기본 엔티티 사이즈가 100kb로 지정되어 있어서, 따로 설정하지 않으면 발생하는 문제

body-parser/json.js at master · expressjs/body-parser
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or window. Reload to refresh your session. Reload to refresh your session.
body-parser/json.js at master · expressjs/body-parser
https://github.com/expressjs/body-parser/blob/master/lib/types/json.js#L54
body-parser/json.js at master · expressjs/body-parser

해결법

import { AppModule } from './app.module';

body-parser의 json 파싱과 urlencoded의 limit을 늘려주자.

2024 Dohyun Jung.
Made with ☕️.