Request body larger than maxBodyLength limit

SDK Version: 3.13.2
Platforms: Android/IOS

When I run “expo publish” I get an error: “Request body larger than maxBodyLength limit”
It started happening right after I updated the expo-cli to v3.13.2. I do not have files in my assets larger than 10mb (the largest is 1,7mb).

How can I fix this? Thanks

2 Likes

downgrade to 3.13.1

npm i -g expo-cli@3.13.1

Thanks! Now I don’t know when to update :smile:

Follow this issue on GitHub:

yes, expo cli new update have some problem. It doesn’t recognises my previous build and behaving non-sense.

This is another problem - bug is closed, but problem still exists in 3.13.6

Request body larger than maxBodyLength limit
Error: Request body larger than maxBodyLength limit
    at RedirectableRequest.write (/usr/local/lib/node_modules/expo-cli/node_modules/axios/node_modules/follow-redirects/index.js:97:24)
    at RedirectableRequest.end (/usr/local/lib/node_modules/expo-cli/node_modules/axios/node_modules/follow-redirects/index.js:116:8)
    at dispatchHttpRequest (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:272:11)
    at new Promise (<anonymous>)
    at httpAdapter (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:20:10)
    at dispatchRequest (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/dispatchRequest.js:59:10)
    at process._tickCallback (internal/process/next_tick.js:68:7)

can you show us how to reproduce this @moxorama? see How to create a Minimal, Reproducible Example - Help Center - Stack Overflow

Trying to reproduce with fresh project - looks ok.
I’m unable to publish project that fails, but I’ll try to figure problem

Happens to me too using 3.13.6

Just updated to 3.13.8 - works fine now

2 Likes

Yep, it works for me too.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.