Giter VIP home page Giter VIP logo

Comments (4)

gempain avatar gempain commented on May 16, 2024

@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.

openainext avatar openainext commented on May 16, 2024

{
"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.

gempain avatar gempain commented on May 16, 2024

@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.

gempain avatar gempain commented on May 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.