We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my code:
const express = require('express'); const app = express(); const port = process.env.PORT || 4000; const Instagram = require('instagram-web-api'); require('dotenv').config(); const client = new Instagram({ username: this.username, password: this.password }); main(); async function main () { await client.login(); client.follow({ userId: '50828038123' }); } app.listen(port, () => { console.log(`Listening on port ${port}`); });
And this is the error that I get when running it:
C:\Users\chris\Documents\Instagram Bot\client\node_modules\request-promise-core\lib\errors.js:32 Error.captureStackTrace(this); ^ <ref *9> StatusCodeError: 302 - undefined at new StatusCodeError (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request-promise-core\lib\errors.js:32:15) at Request.plumbing.callback (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request-promise-core\lib\plumbing.js:104:33) at Request.RP$callback [as _callback] (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request-promise-core\lib\plumbing.js:46:31) at Request.self.callback (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request\request.js:185:22) at Request.emit (node:events:390:28) at Request.<anonymous> (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request\request.js:1154:10) at Request.emit (node:events:390:28) at IncomingMessage.<anonymous> (C:\Users\chris\Documents\Instagram Bot\client\node_modules\request\request.js:1076:12) at Object.onceWrapper (node:events:509:28) at IncomingMessage.emit (node:events:402:35) { statusCode: 302, error: undefined, options: { baseUrl: 'https://www.instagram.com', uri: '/web/friendships/50828038123/follow/', headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""' }, jar: RequestJar { _jar: CookieJar { enableLooseMode: true, store: MemoryCookieStore { idx: { 'www.instagram.com': [Object], 'instagram.com': [Object] } } } }, json: true, method: 'POST', callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, response: <ref *2> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: true, endEmitted: true, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, errored: null, closed: true, closeEmitted: true, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: true, dataEmitted: false, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [ [Function: responseOnEnd], [Function (anonymous)] ], close: [ [Function (anonymous)], [Function (anonymous)] ], data: [Function (anonymous)], error: [Function (anonymous)] }, _eventsCount: 4, _maxListeners: undefined, socket: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: SecureContext { context: SecureContext {} }, isServer: false, requestCert: true, rejectUnauthorized: true, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined, onread: undefined, signal: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'www.instagram.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [ [Function: onSocketCloseDestroySSL], [Function: bound onceWrapper] { listener: [Function (anonymous)] }, [Function: onClose], [Function: socketCloseListener] ], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function: bound onceWrapper] { listener: [Function: destroy] } }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'www.instagram.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: false, emitClose: false, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, constructed: true, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: ClientRequest { _events: [Object: null prototype] { response: [Function: bound ], error: [Function: bound ], drain: [Function (anonymous)], socket: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 5, _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: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [Circular *1], _header: 'POST /web/friendships/50828038123/follow/ HTTP/1.1\r\n' + 'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)\r\n' + 'Accept-Language: en-US\r\n' + 'X-Instagram-AJAX: 1\r\n' + 'X-Requested-With: XMLHttpRequest\r\n' + 'Referer: https://www.instagram.com\r\n' + 'X-CSRFToken: ""\r\n' + 'host: www.instagram.com\r\n' + 'accept: application/json\r\n' + 'content-length: 0\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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/web/friendships/50828038123/follow/', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'www.instagram.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { 'user-agent': [ 'User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)' ], 'accept-language': [ 'Accept-Language', 'en-US' ], 'x-instagram-ajax': [ 'X-Instagram-AJAX', 1 ], 'x-requested-with': [ 'X-Requested-With', 'XMLHttpRequest' ], referer: [ 'Referer', 'https://www.instagram.com' ], 'x-csrftoken': [ 'X-CSRFToken', '""' ], host: [ 'host', 'www.instagram.com' ], accept: [ 'accept', 'application/json' ], 'content-length': [ 'content-length', 0 ] } }, [Symbol(res)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 255, [Symbol(kHandle)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [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)]: { 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, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], _events: [Object: null prototype] { error: [Function: bound ], complete: [Function: bound ], pipe: [Function (anonymous)], data: [Function (anonymous)], end: [Function (anonymous)] }, _eventsCount: 3, _maxListeners: undefined, uri: Url { protocol: 'https:', slashes: true, auth: null, host: 'www.instagram.com', port: 443, hostname: 'www.instagram.com', hash: null, search: null, query: null, pathname: '/web/friendships/50828038123/follow/', path: '/web/friendships/50828038123/follow/', href: 'https://www.instagram.com/web/friendships/50828038123/follow/' }, headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""', accept: 'application/json', 'content-length': 0 }, method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: <ref *3> Querystring { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Circular *3], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, lib: { formats: [Object], parse: [Function (anonymous)], stringify: [Function (anonymous)] }, useQuerystring: undefined, parseOptions: {}, stringifyOptions: {} }, _auth: <ref *4> Auth { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Circular *4], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, hasAuth: false, sentAuth: false, bearerToken: null, user: null, pass: null }, _oauth: <ref *5> OAuth { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [Circular *5], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, params: null }, _multipart: <ref *6> Multipart { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Circular *6], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, boundary: '2ef15f8f-8c09-422f-8ad7-60e123b1cd6a', chunked: false, body: null }, _redirect: <ref *7> Redirect { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Circular *7], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, followRedirect: true, followRedirects: true, followAllRedirects: false, followOriginalHttpMethod: false, allowRedirect: [Function (anonymous)], maxRedirects: 10, redirects: [], redirectsFollowed: 0, removeRefererHeader: false }, _tunnel: <ref *8> Tunnel { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Circular *8], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, proxyHeaderWhiteList: [ 'accept', 'accept-charset', 'accept-encoding', 'accept-language', 'accept-ranges', 'cache-control', 'content-encoding', 'content-language', 'content-location', 'content-md5', 'content-range', 'content-type', 'connection', 'date', 'expect', 'max-forwards', 'pragma', 'referer', 'te', 'user-agent', 'via' ], proxyHeaderExclusiveList: [] }, _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: Promise { <rejected> [Circular *9] }, _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: { baseUrl: 'https://www.instagram.com', uri: '/web/friendships/50828038123/follow/', headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""' }, jar: RequestJar { _jar: [CookieJar] }, json: true, method: 'POST', callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: RequestJar { _jar: CookieJar { enableLooseMode: true, store: [MemoryCookieStore] } }, port: 443, host: 'www.instagram.com', path: null, _json: true, httpModule: { 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] }, agentClass: [Function: Agent], 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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', _defaultAgent: 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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, servername: 'www.instagram.com', _agentKey: 'www.instagram.com:443:::::::::::::::::::::', encoding: null, singleUse: true }, [Symbol(RequestTimeout)]: undefined }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'Content-Type', 'text/html; charset=utf-8', 'Location', 'https://www.instagram.com/accounts/login/?next=/web/friendships/50828038123/follow/', 'Vary', 'Accept-Language, Cookie', 'Content-Language', 'en', 'Date', 'Tue, 04 Jan 2022 09:45:30 GMT', 'Strict-Transport-Security', 'max-age=31536000', 'Cache-Control', 'private, no-cache, no-store, must-revalidate', 'Pragma', 'no-cache', 'Expires', 'Sat, 01 Jan 2000 00:00:00 GMT', 'X-Frame-Options', 'SAMEORIGIN', 'content-security-policy', "report-uri https://www.instagram.com/security/csp_report/; default-src 'self' https://www.instagram.com; img-src data: blob: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com https://*.facebook.com https://*.fbsbx.com; font-src data: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com; media-src 'self' blob: https://www.instagram.com https://*.cdninstagram.com https://*.fbcdn.net; manifest-src 'self' https://www.instagram.com; script-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://*.cdninstagram.com wss://www.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' https://*.www.instagram.com https://www.instagram.com 'unsafe-inline'; connect-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://graph.instagram.com https://*.graph.instagram.com https://i.instagram.com/graphql_www https://graphql.instagram.com https://*.cdninstagram.com https://api.instagram.com https://i.instagram.com https://*.i.instagram.com wss://www.instagram.com wss://edge-chat.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net chrome-extension://boadgeojelhgndaghljhdicfkmllpafd blob:; worker-src 'self' blob: https://www.instagram.com; frame-src 'self' https://instagram.com https://www.instagram.com https://*.instagram.com https://staticxx.facebook.com https://www.facebook.com https://web.facebook.com https://connect.facebook.net https://m.facebook.com; object-src 'none'; upgrade-insecure-requests", 'X-Content-Type-Options', 'nosniff', 'X-XSS-Protection', '0', 'x-ig-push-state', 'c2', 'x-aed', '48', 'Access-Control-Expose-Headers', 'X-IG-Set-WWW-Claim', 'x-ig-request-start-time', '4770451187.04494', 'x-ig-request-end-time', '4770451212', 'Set-Cookie', 'csrftoken=""; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'Set-Cookie', 'csrftoken=""; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'x-ig-origin-region', 'ash', 'X-FB-TRIP-ID', '1679558926', 'Alt-Svc', 'h3=":443"; ma=3600,h3-29=":443"; ma=3600', 'Connection', 'close', 'Content-Length', '0' ], rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 302, statusMessage: 'Found', client: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: SecureContext { context: SecureContext {} }, isServer: false, requestCert: true, rejectUnauthorized: true, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined, onread: undefined, signal: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'www.instagram.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [ [Function: onSocketCloseDestroySSL], [Function: bound onceWrapper] { listener: [Function (anonymous)] }, [Function: onClose], [Function: socketCloseListener] ], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function: bound onceWrapper] { listener: [Function: destroy] } }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'www.instagram.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: false, emitClose: false, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, constructed: true, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: ClientRequest { _events: [Object: null prototype] { response: [Function: bound ], error: [Function: bound ], drain: [Function (anonymous)], socket: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 5, _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: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: [Circular *1], _header: 'POST /web/friendships/50828038123/follow/ HTTP/1.1\r\n' + 'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)\r\n' + 'Accept-Language: en-US\r\n' + 'X-Instagram-AJAX: 1\r\n' + 'X-Requested-With: XMLHttpRequest\r\n' + 'Referer: https://www.instagram.com\r\n' + 'X-CSRFToken: ""\r\n' + 'host: www.instagram.com\r\n' + 'accept: application/json\r\n' + 'content-length: 0\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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/web/friendships/50828038123/follow/', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'www.instagram.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { 'user-agent': [ 'User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)' ], 'accept-language': [ 'Accept-Language', 'en-US' ], 'x-instagram-ajax': [ 'X-Instagram-AJAX', 1 ], 'x-requested-with': [ 'X-Requested-With', 'XMLHttpRequest' ], referer: [ 'Referer', 'https://www.instagram.com' ], 'x-csrftoken': [ 'X-CSRFToken', '""' ], host: [ 'host', 'www.instagram.com' ], accept: [ 'accept', 'application/json' ], 'content-length': [ 'content-length', 0 ] } }, [Symbol(res)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 255, [Symbol(kHandle)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [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)]: { 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, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], _events: [Object: null prototype] { error: [Function: bound ], complete: [Function: bound ], pipe: [Function (anonymous)], data: [Function (anonymous)], end: [Function (anonymous)] }, _eventsCount: 3, _maxListeners: undefined, uri: Url { protocol: 'https:', slashes: true, auth: null, host: 'www.instagram.com', port: 443, hostname: 'www.instagram.com', hash: null, search: null, query: null, pathname: '/web/friendships/50828038123/follow/', path: '/web/friendships/50828038123/follow/', href: 'https://www.instagram.com/web/friendships/50828038123/follow/' }, headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""', accept: 'application/json', 'content-length': 0 }, method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: <ref *3> Querystring { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Circular *3], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, lib: { formats: [Object], parse: [Function (anonymous)], stringify: [Function (anonymous)] }, useQuerystring: undefined, parseOptions: {}, stringifyOptions: {} }, _auth: <ref *4> Auth { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Circular *4], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, hasAuth: false, sentAuth: false, bearerToken: null, user: null, pass: null }, _oauth: <ref *5> OAuth { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [Circular *5], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, params: null }, _multipart: <ref *6> Multipart { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Circular *6], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, boundary: '2ef15f8f-8c09-422f-8ad7-60e123b1cd6a', chunked: false, body: null }, _redirect: <ref *7> Redirect { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Circular *7], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, followRedirect: true, followRedirects: true, followAllRedirects: false, followOriginalHttpMethod: false, allowRedirect: [Function (anonymous)], maxRedirects: 10, redirects: [], redirectsFollowed: 0, removeRefererHeader: false }, _tunnel: <ref *8> Tunnel { request: Request { _events: [Object: null prototype], _eventsCount: 5, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Circular *8], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: [ClientRequest], ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, proxyHeaderWhiteList: [ 'accept', 'accept-charset', 'accept-encoding', 'accept-language', 'accept-ranges', 'cache-control', 'content-encoding', 'content-language', 'content-location', 'content-md5', 'content-range', 'content-type', 'connection', 'date', 'expect', 'max-forwards', 'pragma', 'referer', 'te', 'user-agent', 'via' ], proxyHeaderExclusiveList: [] }, _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: Promise { <rejected> [Circular *9] }, _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: { baseUrl: 'https://www.instagram.com', uri: '/web/friendships/50828038123/follow/', headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""' }, jar: RequestJar { _jar: [CookieJar] }, json: true, method: 'POST', callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: RequestJar { _jar: CookieJar { enableLooseMode: true, store: [MemoryCookieStore] } }, port: 443, host: 'www.instagram.com', path: null, _json: true, httpModule: { 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] }, agentClass: [Function: Agent], 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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', _defaultAgent: 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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, servername: 'www.instagram.com', _agentKey: 'www.instagram.com:443:::::::::::::::::::::', encoding: null, singleUse: true }, [Symbol(RequestTimeout)]: undefined }, _consuming: false, _dumped: false, req: <ref *10> ClientRequest { _events: [Object: null prototype] { response: [Function: bound ], error: [Function: bound ], drain: [Function (anonymous)], socket: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 5, _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: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: SecureContext { context: SecureContext {} }, isServer: false, requestCert: true, rejectUnauthorized: true, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined, onread: undefined, signal: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'www.instagram.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [ [Function: onSocketCloseDestroySSL], [Function], [Function: onClose], [Function: socketCloseListener] ], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function: bound onceWrapper] { listener: [Function: destroy] } }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'www.instagram.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: false, emitClose: false, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, constructed: true, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular *10], [Symbol(res)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 255, [Symbol(kHandle)]: TLSWrap { _parent: TCP { reading: [Getter/Setter], onconnection: null, [Symbol(owner_symbol)]: [Circular *1] }, _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 *1] }, [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)]: { 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, session: Buffer(2023) [Uint8Array] [ 48, 130, 7, 227, 2, 1, 1, 2, 2, 3, 4, 4, 2, 19, 3, 4, 32, 16, 209, 136, 226, 177, 104, 188, 11, 84, 237, 29, 136, 121, 206, 203, 101, 7, 131, 63, 32, 240, 214, 147, 183, 17, 198, 72, 213, 229, 233, 19, 101, 4, 32, 175, 68, 90, 1, 248, 106, 179, 28, 20, 11, 85, 237, 192, 181, 255, 36, 23, 234, 206, 157, 28, 154, 90, 83, 31, 83, 124, 109, 62, 122, 219, 35, 161, 6, 2, 4, 97, 212, 23, 57, 162, 4, 2, 2, 28, 32, 163, 130, 6, ... 1923 more items ], _events: [Object: null prototype] { error: [Function: bound ], complete: [Function: bound ], pipe: [Function (anonymous)], data: [Function (anonymous)], end: [Function (anonymous)] }, _eventsCount: 3, _maxListeners: undefined, uri: Url { protocol: 'https:', slashes: true, auth: null, host: 'www.instagram.com', port: 443, hostname: 'www.instagram.com', hash: null, search: null, query: null, pathname: '/web/friendships/50828038123/follow/', path: '/web/friendships/50828038123/follow/', href: 'https://www.instagram.com/web/friendships/50828038123/follow/' }, headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""', accept: 'application/json', 'content-length': 0 }, method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: <ref *3> Querystring { request: [Request], lib: [Object], useQuerystring: undefined, parseOptions: {}, stringifyOptions: {} }, _auth: <ref *4> Auth { request: [Request], hasAuth: false, sentAuth: false, bearerToken: null, user: null, pass: null }, _oauth: <ref *5> OAuth { request: [Request], params: null }, _multipart: <ref *6> Multipart { request: [Request], boundary: '2ef15f8f-8c09-422f-8ad7-60e123b1cd6a', chunked: false, body: null }, _redirect: <ref *7> Redirect { request: [Request], followRedirect: true, followRedirects: true, followAllRedirects: false, followOriginalHttpMethod: false, allowRedirect: [Function (anonymous)], maxRedirects: 10, redirects: [], redirectsFollowed: 0, removeRefererHeader: false }, _tunnel: <ref *8> Tunnel { request: [Request], proxyHeaderWhiteList: [Array], proxyHeaderExclusiveList: [] }, _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: Promise { <rejected> [Circular *9] }, _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: { baseUrl: 'https://www.instagram.com', uri: '/web/friendships/50828038123/follow/', headers: [Object], jar: [RequestJar], json: true, method: 'POST', callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: RequestJar { _jar: [CookieJar] }, port: 443, host: 'www.instagram.com', path: null, _json: true, httpModule: { Agent: [Function: Agent], globalAgent: [Agent], Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] }, agentClass: [Function: Agent], agent: 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 }, _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', _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 }, servername: 'www.instagram.com', _agentKey: 'www.instagram.com:443:::::::::::::::::::::', encoding: null, singleUse: true }, [Symbol(RequestTimeout)]: undefined }, _header: 'POST /web/friendships/50828038123/follow/ HTTP/1.1\r\n' + 'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)\r\n' + 'Accept-Language: en-US\r\n' + 'X-Instagram-AJAX: 1\r\n' + 'X-Requested-With: XMLHttpRequest\r\n' + 'Referer: https://www.instagram.com\r\n' + 'X-CSRFToken: ""\r\n' + 'host: www.instagram.com\r\n' + 'accept: application/json\r\n' + 'content-length: 0\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] { 'www.instagram.com:443:::::::::::::::::::::': [ [TLSSocket] ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: { 'www.instagram.com:443:::::::::::::::::::::': [Buffer [Uint8Array]] }, list: [ 'www.instagram.com:443:::::::::::::::::::::' ] }, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/web/friendships/50828038123/follow/', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'www.instagram.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { 'user-agent': [ 'User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)' ], 'accept-language': [ 'Accept-Language', 'en-US' ], 'x-instagram-ajax': [ 'X-Instagram-AJAX', 1 ], 'x-requested-with': [ 'X-Requested-With', 'XMLHttpRequest' ], referer: [ 'Referer', 'https://www.instagram.com' ], 'x-csrftoken': [ 'X-CSRFToken', '""' ], host: [ 'host', 'www.instagram.com' ], accept: [ 'accept', 'application/json' ], 'content-length': [ 'content-length', 0 ] } }, request: <ref *11> Request { _events: [Object: null prototype] { error: [Function: bound ], complete: [Function: bound ], pipe: [Function (anonymous)], data: [Function (anonymous)], end: [Function (anonymous)] }, _eventsCount: 5, _maxListeners: undefined, uri: Url { protocol: 'https:', slashes: true, auth: null, host: 'www.instagram.com', port: 443, hostname: 'www.instagram.com', hash: null, search: null, query: null, pathname: '/web/friendships/50828038123/follow/', path: '/web/friendships/50828038123/follow/', href: 'https://www.instagram.com/web/friendships/50828038123/follow/' }, headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""', accept: 'application/json', 'content-length': 0 }, method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: <ref *3> Querystring { request: [Circular *11], lib: { formats: { default: 'RFC3986', formatters: [Object], RFC1738: 'RFC1738', RFC3986: 'RFC3986' }, parse: [Function (anonymous)], stringify: [Function (anonymous)] }, useQuerystring: undefined, parseOptions: {}, stringifyOptions: {} }, _auth: <ref *4> Auth { request: [Circular *11], hasAuth: false, sentAuth: false, bearerToken: null, user: null, pass: null }, _oauth: <ref *5> OAuth { request: [Circular *11], params: null }, _multipart: <ref *6> Multipart { request: [Circular *11], boundary: '2ef15f8f-8c09-422f-8ad7-60e123b1cd6a', chunked: false, body: null }, _redirect: <ref *7> Redirect { request: [Circular *11], followRedirect: true, followRedirects: true, followAllRedirects: false, followOriginalHttpMethod: false, allowRedirect: [Function (anonymous)], maxRedirects: 10, redirects: [], redirectsFollowed: 0, removeRefererHeader: false }, _tunnel: <ref *8> Tunnel { request: [Circular *11], proxyHeaderWhiteList: [ 'accept', 'accept-charset', 'accept-encoding', 'accept-language', 'accept-ranges', 'cache-control', 'content-encoding', 'content-language', 'content-location', 'content-md5', 'content-range', 'content-type', 'connection', 'date', 'expect', 'max-forwards', 'pragma', 'referer', 'te', 'user-agent', 'via' ], proxyHeaderExclusiveList: [] }, _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: Promise { <rejected> [Circular *9] }, _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: { baseUrl: 'https://www.instagram.com', uri: '/web/friendships/50828038123/follow/', headers: { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)', 'Accept-Language': 'en-US', 'X-Instagram-AJAX': 1, 'X-Requested-With': 'XMLHttpRequest', Referer: 'https://www.instagram.com', 'X-CSRFToken': '""' }, jar: RequestJar { _jar: CookieJar { enableLooseMode: true, store: [MemoryCookieStore] } }, json: true, method: 'POST', callback: [Function: RP$callback], transform: undefined, simple: true, resolveWithFullResponse: false, transform2xxOnly: false }, setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: RequestJar { _jar: CookieJar { enableLooseMode: true, store: MemoryCookieStore { idx: [Object] } } }, port: 443, host: 'www.instagram.com', path: '/web/friendships/50828038123/follow/', _json: true, httpModule: { Agent: [Function: Agent], globalAgent: 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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] }, agentClass: [Function: Agent], 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] { 'www.instagram.com:443:::::::::::::::::::::': [ [TLSSocket] ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: { 'www.instagram.com:443:::::::::::::::::::::': [Buffer [Uint8Array]] }, list: [ 'www.instagram.com:443:::::::::::::::::::::' ] }, [Symbol(kCapture)]: false }, _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', req: <ref *10> ClientRequest { _events: [Object: null prototype] { response: [Function: bound ], error: [Function: bound ], drain: [Function (anonymous)], socket: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 5, _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: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: <ref *1> TLSSocket { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: [SecureContext], isServer: false, requestCert: true, rejectUnauthorized: true, session: [Buffer [Uint8Array]], ALPNProtocols: undefined, requestOCSP: undefined, enableTrace: undefined, pskCallback: undefined, highWaterMark: undefined, onread: undefined, signal: undefined }, _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'www.instagram.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [Array], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], finish: [Function] }, _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'www.instagram.com', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: [BufferList], length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, constructed: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: null, encoding: null, [Symbol(kPaused)]: false }, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: true, needDrain: false, ending: true, ended: true, finished: false, destroyed: false, decodeStrings: false, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: false, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 1, constructed: true, prefinished: false, errorEmitted: false, emitClose: false, autoDestroy: true, errored: null, closed: false, closeEmitted: false, [Symbol(kOnFinished)]: [] }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: {}, onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular *10], [Symbol(res)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: {}, onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 255, [Symbol(kHandle)]: TLSWrap { _parent: [TCP], _parentWrap: undefined, _secureContext: [SecureContext], reading: true, onkeylog: [Function: onkeylog], onhandshakestart: {}, onhandshakedone: [Function (anonymous)], onocspresponse: [Function: onocspresponse], onnewsession: [Function: onnewsessionclient], onerror: [Function: onerror], [Symbol(owner_symbol)]: [Circular *1] }, [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)]: { 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, session: [Buffer [Uint8Array]], _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, uri: [Url], headers: [Object], method: 'POST', readable: true, writable: true, explicitMethod: true, _qs: [Querystring], _auth: [Auth], _oauth: [OAuth], _multipart: [Multipart], _redirect: [Redirect], _tunnel: [Tunnel], _rp_resolve: [Function (anonymous)], _rp_reject: [Function (anonymous)], _rp_promise: [Promise], _rp_callbackOrig: undefined, callback: [Function (anonymous)], _rp_options: [Object], setHeader: [Function (anonymous)], hasHeader: [Function (anonymous)], getHeader: [Function (anonymous)], removeHeader: [Function (anonymous)], localAddress: undefined, pool: {}, dests: [], __isRequestRequest: true, _callback: [Function: RP$callback], proxy: null, tunnel: true, setHost: true, originalCookieHeader: undefined, _jar: [RequestJar], port: 443, host: 'www.instagram.com', path: null, _json: true, httpModule: [Object], agentClass: [Function: Agent], agent: [Agent], _started: true, href: 'https://www.instagram.com/web/friendships/50828038123/follow/', _defaultAgent: [Agent], servername: 'www.instagram.com', _agentKey: 'www.instagram.com:443:::::::::::::::::::::', encoding: null, singleUse: true }, [Symbol(RequestTimeout)]: undefined }, _header: 'POST /web/friendships/50828038123/follow/ HTTP/1.1\r\n' + 'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)\r\n' + 'Accept-Language: en-US\r\n' + 'X-Instagram-AJAX: 1\r\n' + 'X-Requested-With: XMLHttpRequest\r\n' + 'Referer: https://www.instagram.com\r\n' + 'X-CSRFToken: ""\r\n' + 'host: www.instagram.com\r\n' + 'accept: application/json\r\n' + 'content-length: 0\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] { 'www.instagram.com:443:::::::::::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/web/friendships/50828038123/follow/', _ended: true, res: [Circular *2], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'www.instagram.com', protocol: 'https:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { 'user-agent': [ 'User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Trident/5.0)' ], 'accept-language': [ 'Accept-Language', 'en-US' ], 'x-instagram-ajax': [ 'X-Instagram-AJAX', 1 ], 'x-requested-with': [ 'X-Requested-With', 'XMLHttpRequest' ], referer: [ 'Referer', 'https://www.instagram.com' ], 'x-csrftoken': [ 'X-CSRFToken', '""' ], host: [ 'host', 'www.instagram.com' ], accept: [ 'accept', 'application/json' ], 'content-length': [ 'content-length', 0 ] } }, ntick: true, response: [Circular *2], originalHost: 'www.instagram.com', originalHostHeaderName: 'host', responseContent: [Circular *2], _ended: true, _callbackCalled: true, [Symbol(kCapture)]: false }, toJSON: [Function: responseToJSON], caseless: Caseless { dict: { 'content-type': 'text/html; charset=utf-8', location: 'https://www.instagram.com/accounts/login/?next=/web/friendships/50828038123/follow/', vary: 'Accept-Language, Cookie', 'content-language': 'en', date: 'Tue, 04 Jan 2022 09:45:30 GMT', 'strict-transport-security': 'max-age=31536000', 'cache-control': 'private, no-cache, no-store, must-revalidate', pragma: 'no-cache', expires: 'Sat, 01 Jan 2000 00:00:00 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-security-policy': "report-uri https://www.instagram.com/security/csp_report/; default-src 'self' https://www.instagram.com; img-src data: blob: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com https://*.facebook.com https://*.fbsbx.com; font-src data: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com; media-src 'self' blob: https://www.instagram.com https://*.cdninstagram.com https://*.fbcdn.net; manifest-src 'self' https://www.instagram.com; script-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://*.cdninstagram.com wss://www.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' https://*.www.instagram.com https://www.instagram.com 'unsafe-inline'; connect-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://graph.instagram.com https://*.graph.instagram.com https://i.instagram.com/graphql_www https://graphql.instagram.com https://*.cdninstagram.com https://api.instagram.com https://i.instagram.com https://*.i.instagram.com wss://www.instagram.com wss://edge-chat.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net chrome-extension://boadgeojelhgndaghljhdicfkmllpafd blob:; worker-src 'self' blob: https://www.instagram.com; frame-src 'self' https://instagram.com https://www.instagram.com https://*.instagram.com https://staticxx.facebook.com https://www.facebook.com https://web.facebook.com https://connect.facebook.net https://m.facebook.com; object-src 'none'; upgrade-insecure-requests", 'x-content-type-options': 'nosniff', 'x-xss-protection': '0', 'x-ig-push-state': 'c2', 'x-aed': '48', 'access-control-expose-headers': 'X-IG-Set-WWW-Claim', 'x-ig-request-start-time': '4770451187.04494', 'x-ig-request-end-time': '4770451212', 'set-cookie': [ 'csrftoken=""; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/' ], 'x-ig-origin-region': 'ash', 'x-fb-trip-id': '1679558926', 'alt-svc': 'h3=":443"; ma=3600,h3-29=":443"; ma=3600', connection: 'close', 'content-length': '0' } }, [Symbol(kCapture)]: false, [Symbol(kHeaders)]: { 'content-type': 'text/html; charset=utf-8', location: 'https://www.instagram.com/accounts/login/?next=/web/friendships/50828038123/follow/', vary: 'Accept-Language, Cookie', 'content-language': 'en', date: 'Tue, 04 Jan 2022 09:45:30 GMT', 'strict-transport-security': 'max-age=31536000', 'cache-control': 'private, no-cache, no-store, must-revalidate', pragma: 'no-cache', expires: 'Sat, 01 Jan 2000 00:00:00 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-security-policy': "report-uri https://www.instagram.com/security/csp_report/; default-src 'self' https://www.instagram.com; img-src data: blob: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com https://*.facebook.com https://*.fbsbx.com; font-src data: https://*.fbcdn.net https://*.instagram.com https://*.cdninstagram.com; media-src 'self' blob: https://www.instagram.com https://*.cdninstagram.com https://*.fbcdn.net; manifest-src 'self' https://www.instagram.com; script-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://*.cdninstagram.com wss://www.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' https://*.www.instagram.com https://www.instagram.com 'unsafe-inline'; connect-src 'self' https://instagram.com https://www.instagram.com https://*.www.instagram.com https://graph.instagram.com https://*.graph.instagram.com https://i.instagram.com/graphql_www https://graphql.instagram.com https://*.cdninstagram.com https://api.instagram.com https://i.instagram.com https://*.i.instagram.com wss://www.instagram.com wss://edge-chat.instagram.com https://*.facebook.com https://*.fbcdn.net https://*.facebook.net chrome-extension://boadgeojelhgndaghljhdicfkmllpafd blob:; worker-src 'self' blob: https://www.instagram.com; frame-src 'self' https://instagram.com https://www.instagram.com https://*.instagram.com https://staticxx.facebook.com https://www.facebook.com https://web.facebook.com https://connect.facebook.net https://m.facebook.com; object-src 'none'; upgrade-insecure-requests", 'x-content-type-options': 'nosniff', 'x-xss-protection': '0', 'x-ig-push-state': 'c2', 'x-aed': '48', 'access-control-expose-headers': 'X-IG-Set-WWW-Claim', 'x-ig-request-start-time': '4770451187.04494', 'x-ig-request-end-time': '4770451212', 'set-cookie': [ 'csrftoken=""; Domain=instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.i.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; Domain=.www.instagram.com; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/', 'csrftoken=""; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/' ], 'x-ig-origin-region': 'ash', 'x-fb-trip-id': '1679558926', 'alt-svc': 'h3=":443"; ma=3600,h3-29=":443"; ma=3600', connection: 'close', 'content-length': '0' }, [Symbol(kHeadersCount)]: 60, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0, [Symbol(RequestTimeout)]: undefined } }
Do you know dwhat is causing the erorr?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my code:
And this is the error that I get when running it:
Do you know dwhat is causing the erorr?
The text was updated successfully, but these errors were encountered: