Open wiredmatrix opened 2 years ago
In developing my json file, I typed moralis-admin-cli deploy to choose the server I want to use but I got errors when I choose any server. How do I solve this error? Below is the error messages I got: En error occured when trying to deploy Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit at RedirectableRequest.write (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\follow-redirects\index.js:102:24) at FormData.ondata (node:internal/streams/legacy:20:31) at FormData.emit (node:events:390:28) at FormData.emit (node:domain:475:12) at FormData.CombinedStream.write (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\combined-stream\lib\combined_stream.js:138:8) at DelayedStream.ondata (node:internal/streams/legacy:20:31) at DelayedStream.emit (node:events:390:28) at DelayedStream.emit (node:domain:475:12) at DelayedStream._handleEmit (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\delayed-stream\lib\delayed_stream.js:82:15) at ReadStream.source.emit (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\delayed-stream\lib\delayed_stream.js:29:19) { config: { url: 'https://nbanwnpmzwqc.usemoralis.com:2087/deploy', method: 'post', data: FormData { _overheadLength: 280, _valueLength: 40, _valuesToMeasure: [Array], writable: true, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [Array], _currentStream: [DelayedStream], _insideLoop: false, _pendingNext: false, _boundary: '--------------------------841155756687641488882596', _events: [Object: null prototype], _eventsCount: 3 }, headers: { Accept: 'application/json, text/plain, /', 'Content-Type': 'multipart/form-data; boundary=--------------------------841155756687641488882596', 'User-Agent': 'axios/0.21.4' }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false } }, request: <ref *1> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false,
}, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError] }, _eventsCount: 2, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'https:', path: '/deploy', method: 'POST', headers: [Object], agent: undefined, agents: [Object], auth: undefined, hostname: 'nbanwnpmzwqc.usemoralis.com', port: '2087', nativeProtocols: [Object], pathname: '/deploy' }, _ended: false, _ending: false, _redirectCount: 0, _redirects: [], _requestBodyLength: 10420542, _requestBodyBuffers: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], ... 63 more items ], _onNativeResponse: [Function (anonymous)], _currentRequest: ClientRequest { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: true, chunkedEncoding: true, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: false, _headerSent: true, _closed: false, socket: [TLSSocket], _header: 'POST /deploy HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------841155756687641488882596\r\n' + 'User-Agent: axios/0.21.4\r\n' + 'Host: nbanwnpmzwqc.usemoralis.com:2087\r\n' + 'Connection: close\r\n' + 'Transfer-Encoding: chunked\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/deploy', _ended: false, res: null, aborted: true, timeoutCb: null, upgradeOrConnect: false, parser: [HTTPParser], maxHeadersCount: null, reusedSocket: false, host: 'nbanwnpmzwqc.usemoralis.com', protocol: 'https:', _redirectable: [Circular *1], [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype], [Symbol(kError)]: undefined }, _currentUrl: 'https://nbanwnpmzwqc.usemoralis.com:2087/deploy', [Symbol(kCapture)]: false
}, response: undefined, isAxiosError: true, toJSON: [Function: toJSON] }
In developing my json file, I typed moralis-admin-cli deploy to choose the server I want to use but I got errors when I choose any server. How do I solve this error? Below is the error messages I got: En error occured when trying to deploy Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit at RedirectableRequest.write (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\follow-redirects\index.js:102:24) at FormData.ondata (node:internal/streams/legacy:20:31) at FormData.emit (node:events:390:28) at FormData.emit (node:domain:475:12) at FormData.CombinedStream.write (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\combined-stream\lib\combined_stream.js:138:8) at DelayedStream.ondata (node:internal/streams/legacy:20:31) at DelayedStream.emit (node:events:390:28) at DelayedStream.emit (node:domain:475:12) at DelayedStream._handleEmit (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\delayed-stream\lib\delayed_stream.js:82:15) at ReadStream.source.emit (C:\Users\Benjamin_Ikwuagwu\AppData\Roaming\npm\node_modules\moralis-admin-cli\node_modules\delayed-stream\lib\delayed_stream.js:29:19) { config: { url: 'https://nbanwnpmzwqc.usemoralis.com:2087/deploy', method: 'post', data: FormData { _overheadLength: 280, _valueLength: 40, _valuesToMeasure: [Array], writable: true, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [Array], _currentStream: [DelayedStream], _insideLoop: false, _pendingNext: false, _boundary: '--------------------------841155756687641488882596', _events: [Object: null prototype], _eventsCount: 3 }, headers: { Accept: 'application/json, text/plain, /', 'Content-Type': 'multipart/form-data; boundary=--------------------------841155756687641488882596', 'User-Agent': 'axios/0.21.4' }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false } }, request: <ref *1> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false,
}, response: undefined, isAxiosError: true, toJSON: [Function: toJSON] }