Comments (4)
@wanglong167 hi ! You can fix this by making sure the --branch
option is not the last one. This is a known issue which I am looking into.
Try this:
npx @getmeli/cli upload \
--url http://localhost:3030 \
--site aa27db77-c0e0-44a4-ac21-6d52934f7c60 \
--branch master \
--token aa1d1dcec5537f707d13953ea740ec2a724224ac6554076e6005252cb3610bc5 \
.
from meli.
{
"errorObject": {
"message": "Request body larger than maxBodyLength limit",
"name": "Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]",
"stack": "Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit\n at RedirectableRequest.write (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\node_modules\follow-redirects\index.js:96:24)\n at FormData.ondata (internal/streams/legacy.js:17:31)\n at FormData.emit (events.js:196:13)\n at FormData.CombinedStream.write (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\node_modules\combined-stream\lib\combined_stream.js:138:8)\n at DelayedStream.ondata (internal/streams/legacy.js:17:31)\n at DelayedStream.emit (events.js:196:13)\n at DelayedStream._handleEmit (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\node_modules\delayed-stream\lib\delayed_stream.js:82:15)\n at ReadStream.source.emit (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\node_modules\delayed-stream\lib\delayed_stream.js:29:19)\n at addChunk (_stream_readable.js:290:12)\n at readableAddChunk (_stream_readable.js:271:11)\nError: Thrown at:\n at data (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\src\commons\axios\ensure-stack-trace.ts:7:36)\n at Object.url [as uploadArchive] (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\src\commands\upload\upload-archive.ts:37:11)\n at Object.t.upload (E:\tmp\npm-cache\_npx\3732\node_modules\@getmeli\cli\src\commands\upload\upload.ts:17:47)",
@gempain change maxBodyLength configuration https://github.com/expressjs/multer#limits
from meli.
@wanglong167 I see you have succeeded in using the CLI. I will close this issue and open a new one for add an environment variable to configure multer's body max length.
from meli.
@wanglong167 the maxBodyLength issue wasn't coming from multer, but from axios
being used in the CLI. I pushed a fix today so you should be good to go. I also released v1.0.0-beta.8 which allows you to configure Multer limits, but by default all of them are set to Infinity
so you shouldn't have to change anything there.
from meli.
Related Issues (20)
- How to delete an organization? HOT 3
- Any way to upload branches/sites with API key (instead of token) via CLI or API? HOT 2
- Configuration Issues HOT 2
- Gitlab Docs are Wrong HOT 2
- Better diagnostics and/or default for MELI_MAX_ORGS HOT 3
- Protect sites with user authentication HOT 4
- Helm chart? HOT 7
- Display Invitation Link HOT 3
- Handling of MAX_ORGS is not right HOT 3
- Site Domains HOT 5
- Password not working HOT 1
- Add domain redirection
- Is this project dead? HOT 1
- Adding a manually created SSL certificate to Meli
- Project state? HOT 2
- Deploy Remix app with Prisma and Postgres HOT 3
- Is document site down ? HOT 2
- Support rewrites
- Does it support special path reverse proxy?
- Not Support Gitea Actions Request failed with status code 404 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meli.