https://gateway.pinata.cloud/ipfs/Error: Request failed with status code 502 at createError (E:\PROJECTS\2022\Hungryvamps\2D\scripts\metadata\node_modules\@pinata\sdk\lib\pinata-sdk.js:1508:15) at settle (E:\PROJECTS\2022\Hungryvamps\2D\scripts\metadata\node_modules\@pinata\sdk\lib\pinata-sdk.js:1783:12) at IncomingMessage.handleStreamEnd (E:\PROJECTS\2022\Hungryvamps\2D\scripts\metadata\node_modules\@pinata\sdk\lib\pinata-sdk.js:858:11) at IncomingMessage.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1317:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { config: { url: 'https://api.pinata.cloud/pinning/pinFileToIPFS', method: 'post', data: FormData { _overheadLength: 220, _valueLength: 0, _valuesToMeasure: [Array], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------853860585871579484800338', _events: [Object: null prototype], _eventsCount: 1 }, headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary= --------------------------853860585871579484800338', pinata_api_key: 'bc3ffd8014babb813f06', pinata_secret_api_key: '8b88b0a6cc9f9eb2f3f68fb419e62fdd635e8e15b35cd4da2376f2bf117f4451', 'User-Agent': 'axios/0.21.1' }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, withCredentials: true, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: 'Infinity', maxBodyLength: 'Infinity', validateStatus: [Function: validateStatus] }, request: ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: true, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'api.pinata.cloud', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'api.pinata.cloud', _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular *1], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 8, [Symbol(kHandle)]: [TLSWrap], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object], [Symbol(RequestTimeout)]: undefined }, _header: 'POST /pinning/pinFileToIPFS HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary= --------------------------853860585871579484800338\r\n' + 'pinata_api_key: bc3ffd8014babb813f06\r\n' + 'pinata_secret_api_key: 8b88b0a6cc9f9eb2f3f68fb419e62fdd635e8e15b35cd4da2376f2bf117f4451\r\n' + 'User-Agent: axios/0.21.1\r\n' + 'Host: api.pinata.cloud\r\n' + 'Connection: close\r\n' + 'Transfer-Encoding: chunked\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/pinning/pinFileToIPFS', _ended: true, res: IncomingMessage { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: [Object], rawHeaders: [Array], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 502, statusMessage: 'Bad Gateway', client: [TLSSocket], _consuming: false, _dumped: false, req: [Circular *1], responseUrl: 'https://api.pinata.cloud/pinning/pinFileToIPFS', redirects: [], [Symbol(kCapture)]: false, [Symbol(RequestTimeout)]: undefined }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'api.pinata.cloud', protocol: 'https:', _redirectable: Writable { _writableState: [WritableState], _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 555392, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: [Circular *1], _currentUrl: 'https://api.pinata.cloud/pinning/pinFileToIPFS', [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], 'content-type': [Array], pinata_api_key: [Array], pinata_secret_api_key: [Array], 'user-agent': [Array], host: [Array] } }, response: { status: 502, statusText: 'Bad Gateway', headers: { date: 'Sun, 12 Jun 2022 15:10:23 GMT', 'content-type': 'text/html', 'content-length': '150', connection: 'close', 'strict-transport-security': 'max-age=15724800; includeSubDomains' }, config: { url: 'https://api.pinata.cloud/pinning/pinFileToIPFS', method: 'post', data: [FormData], headers: [Object], transformRequest: [Array], transformResponse: [Array], timeout: 0, withCredentials: true, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: 'Infinity', maxBodyLength: 'Infinity', validateStatus: [Function: validateStatus] }, request: ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: true, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], _header: 'POST /pinning/pinFileToIPFS HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary= --------------------------853860585871579484800338\r\n' + 'pinata_api_key: bc3ffd8014babb813f06\r\n' + 'pinata_secret_api_key: 8b88b0a6cc9f9eb2f3f68fb419e62fdd635e8e15b35cd4da2376f2bf117f4451\r\n' + 'User-Agent: axios/0.21.1\r\n' + 'Host: api.pinata.cloud\r\n' + 'Connection: close\r\n' + 'Transfer-Encoding: chunked\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/pinning/pinFileToIPFS', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'api.pinata.cloud', protocol: 'https:', _redirectable: [Writable], [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: true, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, data: '\r\n' + '502 Bad Gateway\r\n' + '\r\n' + '

502 Bad Gateway

\r\n' + '
nginx
\r\n' + '\r\n' + '\r\n' }, isAxiosError: true, toJSON: [Function: toJSON] }