我正在尝试构建已签名的APK以上传到Google Play。
我的应用程序包含一些JSON资产,总共50MB。
当我删除它们时,不会发生此错误,我的应用程序已成功构建。
所以我想尝试增加maxBodyLength
,但我不知道它来自哪里以及如何更改它?
以下是cmd的详细日志:
exp build:android
[exp] Checking if current build exists...
[exp] No currently active or previous builds for this project.
? Would you like to upload a keystore or have us generate one for you?
If you don't know what this means, let us handle it! :)
false
[exp] Publishing...
[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[exp] Building iOS bundle
[exp] Building Android bundle
[exp] Analyzing assets
[exp] Uploading assets
[exp] No assets changed, skipped.
[exp] Uploading JavaScript bundles
[exp] Request body larger than maxBodyLength limit
[exp] Error: Request body larger than maxBodyLength limit
at Writable.RedirectableRequest.write (C:\Users\User\AppData\Roaming\npm\node_modules\exp\node_modules\follow-redirects\index.js:66:24)
at Writable.RedirectableRequest.end (C:\Users\User\AppData\Roaming\npm\node_modules\exp\node_modules\follow-redirects\index.js:78:10)
at dispatchHttpRequest (C:\Users\User\AppData\Roaming\npm\node_modules\exp\node_modules\axios\lib\adapters\http.js:228:11)
at httpAdapter (C:\Users\User\AppData\Roaming\npm\node_modules\exp\node_modules\axios\lib\adapters\http.js:18:10)
at dispatchRequest (C:\Users\User\AppData\Roaming\npm\node_modules\exp\node_modules\axios\lib\core\dispatchRequest.js:52:10)
at process._tickCallback (internal/process/next_tick.js:109:7)