I am trying to upload 5555 files to IPFs using moralis, but it only allows me to upload about 100 before it crashes. Please help!
Code:
/* Moralis init code */
let fs = require("fs");
let axios = require("axios");
let Moralis = require('moralis/node');
const csv = require('csv-parser');
const serverUrl = "https://wafhxjairicm.usemoralis.com:2053/server";
const appId = "7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf";
const masterKey = "";
/*Reading the csv*/
var rows =[]
fs.createReadStream('variant_data.csv')
.pipe(csv())
.on('data', (row) => {
rows.push(row);
})
.on('end', () => {
console.log('CSV file successfully processed');
});
/* Making a array to choose random value from*/
var set_values = [];
for(let i = 5; i<21; i++){
set_values.push(i);
if(i != 20){
set_values.push(i + 0.5);
}
}
const SaveData = async () => {
await Moralis.start({ serverUrl, appId, masterKey });
let ipfsArray = [];
for (let i = 1; i < 5556; i++) {
const randomElement1 = set_values[Math.floor(Math.random() * set_values.length)];
const randomElement2 = set_values[Math.floor(Math.random() * set_values.length)];
const randomElement3 = set_values[Math.floor(Math.random() * set_values.length)];
const randomElement4 = set_values[Math.floor(Math.random() * set_values.length)];
const randomElement5 = set_values[Math.floor(Math.random() * set_values.length)];
const Farmer = Moralis.Object.extend("Farmer");
const farmer = new Farmer();
/*Creating the image index*/
var paddedHex = '';
if(i < 10){paddedHex = "000" + i.toString();}
else{if(i < 100){paddedHex = "00" + i.toString();}
else{if(i < 1000){paddedHex = "0" + i.toString();}
else{paddedHex = i.toString();}}}
let actualHex = ("0000000000000000000000000000000000000000000000000000000000000000" + i.toString(16)).substr("-64");
/*Setting metadata*/
if(rows[i-1]['Accessories Name'] == "Blue BubbleGum"){
rows[i-1]['Accessories Name'] = "Blue Bubble Gum";
}
if(rows[i-1]['Accessories Name'] == "Yellow BubbleGum"){
rows[i-1]['Accessories Name'] = "Yellow Bubble Gum";
}
if(rows[i-1]['Accessories Name'] == "Pink BubbleGum"){
rows[i-1]['Accessories Name'] = "Pink Bubble Gum";
}
if(rows[i-1]['Accessories Name'] == "Mint BubbleGum"){
rows[i-1]['Accessories Name'] = "Mint Bubble Gum";
}
if(rows[i-1]['Accessories Name'] == "No Accessory"){
rows[i-1]['Accessories Name'] = "None";
}
farmer.save(null, { useMasterKey: true });
ipfsArray.push({
path: `metadata/${actualHex}.json`,
content: {
"name":`Farmer #${i}`,
"description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.",
"image":`https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer${i}.jpg`,
"properties":{
"appearance":{
"Skin color": rows[i-1]['Body Name'],
"Eye color": rows[i-1]['Eyes Name'],
"Accessory": rows[i-1]['Accessories Name'],
"Hat": rows[i-1]['Hats Name'],
"Pants": rows[i-1]['Pants Name'],
"Shoes": rows[i-1]['Shoes Name'],
"Shirt": rows[i-1]['Shirts Name'],
"Setting":rows[i-1]['Planes Material'],
},
"statistics":{
"Tenacity": randomElement1,
"Strength": randomElement2,
"Agility": randomElement3,
"Intelligence": randomElement4,
"Luck": randomElement5,
}
}
}
})
}
const path = await Moralis.Web3API.storage.uploadFolder({abi: ipfsArray});
console.log(path)
};
SaveData();
const fetch = require('node-fetch');
Error:
<ref *1> Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read',
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,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.26.1',
'Content-Length': 4804477
},
baseURL: 'https://wafhxjairicm.usemoralis.com:2053/server',
method: 'post',
url: '/functions/uploadFolder',
data: `{"abi":[{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000001.json","content":{"name":"Farmer #1","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer1.jpg","properties":{"appearance":{"Skin color":"Chestnut","Eye color":"Almond","Accessory":"Black Pipe","Hat":"Green Baseball Cap","Pants":"Light Blue Pants Brown Belt","Shoes":"Brown Reverse Sneakers","Shirt":"Green Polo Shirt","Setting":"Setting #1"},"statistics":{"Tenacity":18,"Strength":5.5,"Agility":7.5,"Intelligence":14.5,"Luck":15}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000002.json","content":{"name":"Farmer #2","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer2.jpg","properties":{"appearance":{"Skin color":"Sienna","Eye color":"Grey","Accessory":"Black Pipe","Hat":"Red Farmer's Hat","Pants":"Light Brown Shorts Brown Belt","Shoes":"Slippers","Shirt":"Blue Polo Shirt","Setting":"Setting #4"},"statistics":{"Tenacity":11,"Strength":8.5,"Agility":14.5,"Intelligence":12,"Luck":14.5}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000003.json","content":{"name":"Farmer #3","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer3.jpg","properties":{"appearance":{"Skin color":"Espresso","Eye color":"Brown","Accessory":"Yellow Bubble Gum","Hat":"Sailors Hat","Pants":"Light Blue Shorts With Black Belt","Shoes":"Green Reverse Sneakers","Shirt":"Green Turtle Neck","Setting":"Setting #7"},"statistics":{"Tenacity":20,"Strength":14,"Agility":11.5,"Intelligence":10.5,"Luck":15.5}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000004.json","content":{"name":"Farmer #4","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer4.jpg","properties":{"appearance":{"Skin color":"Sienna","Eye color":"Grey","Accessory":"None","Hat":"Blue Baseball Cap","Pants":"Red Shorts Brown Belt","Shoes":"Beige Sneakers","Shirt":"White Shirt","Setting":"Setting #2"},"statistics":{"Tenacity":12,"Strength":10.5,"Agility":17.5,"Intelligence":6,"Luck":9}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000005.json","content":{"name":"Farmer #5","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer5.jpg","properties":{"appearance":{"Skin color":"Ivory","Eye color":"Black","Accessory":"None","Hat":"Yellow Baseball Cap","Pants":"Light Brown Pants With Black Belt","Shoes":"Brown Shoes","Shirt":"Green Turtle Neck","Setting":"Setting #7"},"statistics":{"Tenacity":19.5,"Strength":6.5,"Agility":20,"Intelligence":7.5,"Luck":19.5}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000006.json","content":{"name":"Farmer #6","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer6.jpg","properties":{"appearance":{"Skin color":"Sienna","Eye color":"Black","Accessory":"Brown Pipe","Hat":"White Fisherman's Hat","Pants":"Light Blue Pants Brown Belt","Shoes":"Purple Bowling Shoes","Shirt":"Brown Turtle Neck","Setting":"Setting #3"},"statistics":{"Tenacity":13.5,"Strength":12,"Agility":13.5,"Intelligence":17,"Luck":8.5}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000007.json","content":{"name":"Farmer #7","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer7.jpg","properties":{"appearance":{"Skin color":"Chestnut","Eye color":"Green","Accessory":"Black Pipe","Hat":"Dark Brown Cowboy Hat","Pants":"Light Blue Shorts Brown Belt","Shoes":"Black Bowling Shoes","Shirt":"Yellow T-Shirt","Setting":"Setting #1"},"statistics":{"Tenacity":8,"Strength":7,"Agility":18.5,"Intelligence":5.5,"Luck":12.5}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000008.json","content":{"name":"Farmer #8","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer8.jpg","properties":{"appearance":{"Skin color":"Ivory","Eye color":"Almond","Accessory":"Golden Tooth","Hat":"Green Baseball Cap","Pants":"Light Brown Pants With Black Belt","Shoes":"Brown Reverse Sneakers","Shirt":"Brown Shirt","Setting":"Setting #3"},"statistics":{"Tenacity":11.5,"Strength":12.5,"Agility":13,"Intelligence":13.5,"Luck":16}}}},{"path":"metadata/0000000000000000000000000000000000000000000000000000000000000009.json","content":{"name":"Farmer #9","description":"“The Farmers” is an NFT collection that contains 5555 unique, computer-generated little characters. Besides being collectibles these tokens are also your key to unlocking the wonders of Farmverse – a multiplayer play-to-earn online video game.","image":"https://wafhxjairicm.usemoralis.com:2053/server/files/7YsTADQstpGlcRj3pXOMVV8crTBdklv8XehAxyrf/1fb02d624345b208230f22e8d3c401b6_Farmer9.jpg","properties":{"appearance":{"Skin color":"Chestnut","Eye color":"Black","Accessory":"Red Pipe","Hat":"Blue Baseball Cap","Pants":"Light Blue Shorts Brown Belt","Shoes":"Black Sneakers","Shirt":"Crazy Shirt","Setting":"Setting #1"},"statistics":{"Tenacity":18,"Strength":12.5,"Agility":18,"Intelligence":5.5,"Luck":16.5}}}},
request: <ref *4> 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: '/server/functions/uploadFolder',
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.26.1',
'Content-Length': 4804477
},
agent: undefined,
agents: { http: undefined, https: undefined },
auth: undefined,
hostname: 'wafhxjairicm.usemoralis.com',
port: '2053',
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [
'ACL', 'BIND', 'CHECKOUT',
'CONNECT', 'COPY', 'DELETE',
'GET', 'HEAD', 'LINK',
'LOCK', 'M-SEARCH', 'MERGE',
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
'MOVE', 'NOTIFY', 'OPTIONS',
'PATCH', 'POST', 'PROPFIND',
'PROPPATCH', 'PURGE', 'PUT',
'REBIND', 'REPORT', 'SEARCH',
'SOURCE', 'SUBSCRIBE', 'TRACE',
'UNBIND', 'UNLINK', 'UNLOCK',
'UNSUBSCRIBE'
],
STATUS_CODES: {
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'103': 'Early Hints',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',
'305': 'Use Proxy',
'307': 'Temporary Redirect',
'308': 'Permanent Redirect',
'400': 'Bad Request',
'401': 'Unauthorized',
'402': 'Payment Required',
'403': 'Forbidden',
'404': 'Not Found',
'405': 'Method Not Allowed',
'406': 'Not Acceptable',
'407': 'Proxy Authentication Required',
'408': 'Request Timeout',
'409': 'Conflict',
'410': 'Gone',
'411': 'Length Required',
'412': 'Precondition Failed',
'413': 'Payload Too Large',
'414': 'URI Too Long',
'415': 'Unsupported Media Type',
'416': 'Range Not Satisfiable',
'417': 'Expectation Failed',
'418': "I'm a Teapot",
'421': 'Misdirected Request',
'422': 'Unprocessable Entity',
'423': 'Locked',
'424': 'Failed Dependency',
'425': 'Too Early',
'426': 'Upgrade Required',
'428': 'Precondition Required',
'429': 'Too Many Requests',
'431': 'Request Header Fields Too Large',
'451': 'Unavailable For Legal Reasons',
'500': 'Internal Server Error',
'501': 'Not Implemented',
'502': 'Bad Gateway',
'503': 'Service Unavailable',
'504': 'Gateway Timeout',
'505': 'HTTP Version Not Supported',
'506': 'Variant Also Negotiates',
'507': 'Insufficient Storage',
'508': 'Loop Detected',
'509': 'Bandwidth Limit Exceeded',
'510': 'Not Extended',
'511': 'Network Authentication Required'
},
Agent: [Function: Agent] { defaultMaxSockets: Infinity },
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: __node_internal_],
validateHeaderValue: [Function: __node_internal_],
get: [Function: get],
request: [Function: request],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
},
pathname: '/server/functions/uploadFolder'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 4804477,
_requestBodyBuffers: [
{
data: Buffer(4804477) [Uint8Array] [
123, 34, 97, 98, 105, 34, 58, 91, 123, 34, 112, 97,
116, 104, 34, 58, 34, 109, 101, 116, 97, 100, 97, 116,
97, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 49, 46, 106, 115, 111, 110, 34,
44, 34, 99, 111,
... 4804377 more items
],
encoding: undefined
}
],
_onNativeResponse: [Function (anonymous)],
_currentRequest: <ref *2> ClientRequest {
_events: [Object: null prototype] {
response: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_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: true,
_closed: false,
socket: <ref *3> TLSSocket {
_tlsOptions: {
allowHalfOpen: undefined,
pipe: false,
secureContext: SecureContext { context: SecureContext {} },
isServer: false,
requestCert: true,
rejectUnauthorized: true,
session: undefined,
ALPNProtocols: undefined,
requestOCSP: undefined,
enableTrace: undefined,
pskCallback: undefined,
highWaterMark: undefined,
onread: undefined,
signal: undefined
},
_secureEstablished: false,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: true,
_SNICallback: null,
servername: null,
alpnProtocol: null,
authorized: false,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype] {
close: [
[Function: onSocketCloseDestroySSL],
[Function],
[Function: onClose],
[Function: socketCloseListener]
],
end: [ [Function: onConnectEnd], [Function: onReadableStreamEnd] ],
newListener: [Function: keylogNewListener],
secure: [Function: onConnectSecure],
session: [Function (anonymous)],
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
drain: [Function: ondrain]
},
_eventsCount: 10,
connecting: false,
_hadError: true,
_parent: null,
_host: 'wafhxjairicm.usemoralis.com',
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
ended: false,
endEmitted: false,
reading: true,
constructed: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
destroyed: true,
errored: [Circular *1],
closed: true,
closeEmitted: true,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
multiAwaitDrain: false,
readingMore: false,
dataEmitted: false,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: true,
ending: false,
ended: false,
finished: false,
destroyed: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 4804693,
writing: true,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: [Function (anonymous)],
writelen: 4804693,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
errored: [Circular *1],
closed: true,
closeEmitted: true,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *2],
[Symbol(res)]: TLSWrap {
_parent: TCP {
reading: [Getter/Setter],
onconnection: null,
[Symbol(owner_symbol)]: [Circular *3],
[Symbol(handle_onclose)]: [Function: done]
},
_parentWrap: undefined,
_secureContext: SecureContext { context: SecureContext {} },
reading: true,
onkeylog: [Function: onkeylog],
onhandshakestart: {},
onhandshakedone: [Function (anonymous)],
onocspresponse: [Function: onocspresponse],
onnewsession: [Function: onnewsessionclient],
onerror: [Function: onerror],
[Symbol(owner_symbol)]: [Circular *3]
},
[Symbol(verified)]: false,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 482,
[Symbol(kHandle)]: null,
[Symbol(lastWriteQueueSize)]: 4804693,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 4804693,
[Symbol(connect-options)]: {
rejectUnauthorized: true,
ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
checkServerIdentity: [Function: checkServerIdentity],
minDHSize: 1024,
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: null,
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.26.1',
'Content-Length': 4804477
},
agent: undefined,
agents: { http: undefined, https: undefined },
auth: undefined,
hostname: 'wafhxjairicm.usemoralis.com',
port: '2053',
nativeProtocols: { 'http:': [Object], 'https:': [Object] },
pathname: '/server/functions/uploadFolder',
_defaultAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
host: 'wafhxjairicm.usemoralis.com',
servername: 'wafhxjairicm.usemoralis.com',
_agentKey: 'wafhxjairicm.usemoralis.com:2053:::::::::::::::::::::',
encoding: null,
singleUse: true
}
},
_header: 'POST /server/functions/uploadFolder HTTP/1.1\r\n' +
'Accept: application/json\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/0.26.1\r\n' +
'Content-Length: 4804477\r\n' +
'Host: wafhxjairicm.usemoralis.com:2053\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype] { path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'wafhxjairicm.usemoralis.com:2053:::::::::::::::::::::': [ [TLSSocket] ]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/server/functions/uploadFolder',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'wafhxjairicm.usemoralis.com',
protocol: 'https:',
_redirectable: [Circular *4],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: true,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json' ],
'content-type': [ 'Content-Type', 'application/json' ],
'user-agent': [ 'User-Agent', 'axios/0.26.1' ],
'content-length': [ 'Content-Length', 4804477 ],
host: [ 'Host', 'wafhxjairicm.usemoralis.com:2053' ]
}
},
_currentUrl: 'https://wafhxjairicm.usemoralis.com:2053/server/functions/uploadFolder',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}