Music + IPFS + Axios: "Error (MAX_BODY_LENGTH_EXCEEDED..."

I see this theme appears regularly: ways to avoid the resulting message –– ("Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit") –– include workarounds such as Pinata to get stuff onto IPFS.

Has anything changed in the last few months, making Axios upload limits more realistic? I am following the example from the Spotify Clone tutorial of two small mp3s and a modest image:

Audio:
12.9MB and 4.2MB
Image:
107KB (.png)

I even tried uploading just the image, but no luck.

These are tiny sizes :wink: - hence my question while attempting to duplicate the tutorial. A previous poster suggested turning .wavs into mp3s, presumably for reasons of size, but that downgrading of the audio will make an NFT less desirable.

In any case, is Pinata the only workaround at the moment? I would love to use the Moralis bulk uploading code for its specific purpose and manage larger numbers of files.
Thank you!

Error [ERR_FR_MAX_BODY_LENGTH_EXCEEDED]: Request body larger than maxBodyLength limit
at RedirectableRequest.write (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/follow-redirects/index.js:102:24)
at RedirectableRequest.end (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/follow-redirects/index.js:127:10)
at dispatchHttpRequest (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/adapters/http.js:421:11)
at new Promise ()
at httpAdapter (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/adapters/http.js:49:10)
at dispatchRequest (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/core/dispatchRequest.js:58:10)
at Axios.request (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/core/Axios.js:109:15)
at Axios.httpMethod [as post] (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/core/Axios.js:144:19)
at Function.wrap [as post] (/Users/davidmacfadyen/w3folders/spotify/Album/node_modules/axios/lib/helpers/bind.js:9:15)
at /Users/davidmacfadyen/w3folders/spotify/Album/music.js:24:6 {
code: ‘ERR_FR_MAX_BODY_LENGTH_EXCEEDED’,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function] },
validateStatus: [Function: validateStatus],
headers: {
Accept: ‘application/json’,
‘Content-Type’: ‘application/json’,
‘X-API-KEY’: ‘l0oISKljjFeReiV35lzfI4EPhDlV6kjnTsDR5baX7OVGyKQYrasugtTp89YHM3De’,
‘User-Agent’: ‘axios/0.27.2’,
‘Content-Length’: 22881073
},
method: ‘post’,
url: ‘https://deep-index.moralis.io/api/v2/ipfs/uploadFolder’,
data: ‘[{“path”:“media/2”,“content”:"iVBORw0KGgoAAAANSUhEUgAABGsAAARrCAYAAAA0KSudAAAAAXNSR0IArs4c6QAAIABJREFUeF7s3QmYLFlZJ/z/29At+2IDAg0IojCDKCrtgiKr0OggmygjCjoq+zhswwC28n0qsqmAPoIgriBuyLA47QcMoIAiCo0iIiqIKC0ICEKzNPR2vudkZdbNW113qarMyoyMX/LEU01VxIn3/Z24mZFvnDhR8SJAgAABAgQIHFCgtXbFJFdLcvUkV53+91Wm/91/XnluuVKSvvRt+nKF6fIFSWbLaUn6cmqSGxwwvN02/9ckFya5aPrz80n68rm55YIkffns3PLpJJ9J0n/25VPT5fwkn0xyflX1bbwIECBAgAABAvsWqH1vaUMCBAgQIEBg4wRaa72ocu0k15pbTk/Sly+cLtdM0pdrzC29yOK1JdCLQJ+YLv+RZLZ8PElfPjZd/j3JbPloVfUikBcBAgQIECBAIIo1DgICBAgQILDhAq21yye5/nS5XpLrzi1flORGSWa/33CNtU/v35J8KMm/JPlwkv7/Z0v//Qf7UlUXr30mAiRAgAABAgT2LaBYs286GxIgQIAAgdULtNb6bUK92HLDuaXfNnRGkptMizJ9pIzXZgl8dFrUeX+SfkvXeUk+MF16oedfFHQ2q8NlQ4AA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GBQAv+U5Luq6m2DilqwBPYpoFizTzibDUugtXbWtFBz1WFFLloCBAgQIECAAAECBKYC5yf5zqp6DRECmy6gWLPpPSy/PqLmu5P8FgoCBAgQIECAAAECBDZC4P5V9dsbkYkkCBxDQLHGobHRAq21hyd5zkYnKTkCBAgQIECAAAEC4xN4RFU9d3xpy3gsAoo1Y+npEebZWjs7yZNHmLqUCRAgQIAAAQIECIxB4OyqesoYEpXj+AQUa8bX56PIuLX2jCSPG0WykiRAgAABAgQIECAwXoFnVNXjx5u+zDdVQLFmU3t2xHm11p6X5CEjJpA6AQIECBAgQIAAgTEJPL+qHjqmhOW6+QKKNZvfx6PKsLXWJxLuEwp7ESBAgAABAgQIECAwHoHfqqrvGU+6Mt10AcWaTe/hkeTXWrt8kpcluftIUpYmAQIECBAgQIAAAQJHC/xBkvtU1cVgCAxdQLFm6D0o/v5o7msk+d9J7oiDAAECBAgQIECAAIFRC7x+WrD55KgVJD94AcWawXfhuBNorV1/OqLm68YtIXsCBA’… 22871073 more characters
},
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,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: ‘https:’,
path: ‘/api/v2/ipfs/uploadFolder’,
method: ‘POST’,
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: ‘deep-index.moralis.io’,
port: null,
nativeProtocols: [Object],
pathname: ‘/api/v2/ipfs/uploadFolder’
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: ‘’,
finished: false,
_headerSent: false,
_closed: false,
socket: null,
_header: null,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: ‘/api/v2/ipfs/uploadFolder’,
_ended: false,
res: null,
aborted: true,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘deep-index.moralis.io’,
protocol: ‘https:’,
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(kError)]: undefined
},
_currentUrl: ‘https://deep-index.moralis.io/api/v2/ipfs/uploadFolder’,
[Symbol(kCapture)]: false
}
}

If you’re using axios, you can try setting these in your request options:

maxContentLength: Infinity,
maxBodyLength: Infinity

But 12.9MB may still be too large.

Considering the average size of a commercial mp3 (not wav or flac) is ~30MB, what’s the best approach if infinity doesn’t work? :slight_smile: I’m only using Axios because it’s in the tutorial, but would be very keen to hear of an alternate tool that can handle bulk uploading!

That endpoint wouldn’t be suitable for those larger uploads if that’s the case. Another provider like Pinata or another storage solution would be recommended.

Would this still suffice as a destination, in that case?
https://deep-index.moralis.io/api/v2/ipfs/uploadFolder
It seems that to do any bulk uploading I’ll need an additional paid service (I tried just uploading a photo, and sadly that didn’t work, either) – but maybe Pinata, say, would require some additional changes in the code from me?

You can check Pinata’s docs for what they offer via API.

1 Like

It’s a shame that Axios is so weedy.

Thank you, as ever! That’s very kind

Just a quick loopback here. So with the deprecation of the Moralis Pinata plugin, the presumed workflow is not to encode Pinata within - let’s say - one of your “clone” projects, but simply to interact with the API separately.
All pinning, therefore, is handled outside the Moralis app, not inside, right? (I don’t know what the the deprecated plugin did - maybe some kind of magic within the Moralis SDK). Thanks!

The plugin (which is more or less a wrapper around an existing API or SDK) would have used Pinata directly, so yes any uploading or pinning through that plugin would have happened on Pinata’s side.

Pinata have SDKs and an API available.

1 Like