Skip to content

Instantly share code, notes, and snippets.

@albertininm
Created March 20, 2024 14:16
Show Gist options
  • Save albertininm/39bff2ae0bcac678fab14e29641f1c14 to your computer and use it in GitHub Desktop.
Save albertininm/39bff2ae0bcac678fab14e29641f1c14 to your computer and use it in GitHub Desktop.
{
err: undefined,
req: <ref *1> IncomingMessage {
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: null,
ended: true,
endEmitted: false,
reading: false,
constructed: true,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
destroyed: false,
errored: null,
closed: false,
closeEmitted: false,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
multiAwaitDrain: false,
readingMore: true,
dataEmitted: false,
decoder: null,
encoding: null,
[Symbol(kPaused)]: null
},
_events: [Object: null prototype] { error: [Array], end: [Array] },
_eventsCount: 2,
_maxListeners: undefined,
socket: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 8,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: [Server],
_server: [Server],
parser: [HTTPParser],
on: [Function: socketListenerWrap],
addListener: [Function: socketListenerWrap],
prependListener: [Function: socketListenerWrap],
setEncoding: [Function: socketSetEncoding],
_paused: false,
_httpMessage: [ServerResponse],
_peername: [Object],
[Symbol(async_id_symbol)]: 143302,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: false,
[Symbol(kSetKeepAliveInitialDelay)]: 0,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'Host',
'admin.albertinin.liferay.sh',
'cache-control',
'max-age=0',
'sec-ch-ua',
'"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
'sec-ch-ua-mobile',
'?0',
'sec-ch-ua-platform',
'"macOS"',
'upgrade-insecure-requests',
'1',
'user-agent',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
'accept',
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'sec-fetch-site',
'same-origin',
'sec-fetch-mode',
'navigate',
'sec-fetch-user',
'?1',
'sec-fetch-dest',
'document',
'referer',
'https://admin.albertinin.liferay.sh/provisioning/new',
'accept-encoding',
'gzip, deflate, br, zstd',
'accept-language',
'en-US,en;q=0.9',
'X-Cloud-Trace-Context',
'b9e7c40760f0c4af13cbc9df14e00426/5647093731988923249',
'Cookie',
'__zlcmid=1EulfvIHPbGcFvC; _csrf=Q4N1JjE-EO-EtJjtiOBGHq6q; __zlcmid=1EulfvIHPbGcFvC; access_token=eyJraWQiOiJLbzJEdmkyeXRHX1o4U2ZidUNISXhYUzdybVhoNEgxTTd4a1JKX0xhdndVIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULmE0N3hEeEJKSWdxTWxxOFgyYjZ1VVc3U2lqUGlUN242YW81UXVCUmZZMDQub2FyM3pscnk3NDlIcjFvN3gzNTciLCJpc3MiOiJodHRwczovL2F1dGgubGlmZXJheS5zaC9vYXV0aDIvYXVzaWZ0M3V4YXJsUEFIYjgzNTYiLCJhdWQiOiJhdXRoX3NlcnZlciIsImlhdCI6MTcxMDk0MDU2OSwiZXhwIjoxNzEwOTQxNDY5LCJjaWQiOiIwb2FoaGs4bzJORVpSN1lmVzM1NiIsInVpZCI6IjAwdWdweDNpbGpLQ0FoRHBSMzU3Iiwic2NwIjpbIm9mZmxpbmVfYWNjZXNzIiwib3BlbmlkIiwicHJvZmlsZSJdLCJhdXRoX3RpbWUiOjE3MTA5NDA1NjgsInN1YiI6ImFsYmVydGluaW4ubW91cmF0b0BsaWZlcmF5LmNsb3VkIiwic3VwcG9ydGVkU2NvcGVzIjpbInRlYW0iXX0.GmCQIwKNZr5HmJp42EZvsAiTmrvOvtkjmeIPHAAD25FsSdT9rz6ytnUSjYW13i0EpVDxgNvGWX-4EBIHm-l-on8QAgC5JguNnfOF_NJnvQATuz06yH1T0iuEIKSENI2ukeYt3dPRMEl4NEtV22e-xAQn8tCDvaGX7U3Sf9AueEsfoE4jSa7u6P8mwJ5i2OWKI2BmBVkYFXZTcNbKcJep8b0r1lmJvrQWdNJ-zLElumC_lxw_IOVQ9DB4gB5pDEWdAhhVmV4JGmFbKVTeF_cRW6U8OWfeeNLY1-DY29YlQzW8uV8ZUjUfTVWi-QM5PHiB9adHae2hfFQxFykWESuZPw; connect.sid=s%3AiiHrZbWQhP66GlTo_wB5NSRPy-VUxl4f.4yAccNKf5ItIGzVCV5C878gkjOYS8z%2Bf4lkWGURTbqg; XSRF-TOKEN=8QeK4IA3-Id-LNP4_AeEdTXHf-2F2g37Sulk',
'Via',
'1.1 google',
'X-Forwarded-For',
'79.216.58.101, 34.36.185.218',
'X-Forwarded-Proto',
'https',
'Connection',
'Keep-Alive'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '/provisioning',
method: 'GET',
statusCode: null,
statusMessage: null,
client: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 8,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: [Server],
_server: [Server],
parser: [HTTPParser],
on: [Function: socketListenerWrap],
addListener: [Function: socketListenerWrap],
prependListener: [Function: socketListenerWrap],
setEncoding: [Function: socketSetEncoding],
_paused: false,
_httpMessage: [ServerResponse],
_peername: [Object],
[Symbol(async_id_symbol)]: 143302,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: false,
[Symbol(kSetKeepAliveInitialDelay)]: 0,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: false,
_dumped: false,
next: [Function: next],
baseUrl: '',
originalUrl: '/provisioning',
_parsedUrl: Url {
protocol: null,
slashes: null,
auth: null,
host: null,
port: null,
hostname: null,
hash: null,
search: null,
query: null,
pathname: '/provisioning',
path: '/provisioning',
href: '/provisioning',
_raw: '/provisioning'
},
params: {},
query: {},
res: ServerResponse {
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: true,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: false,
_closed: false,
socket: [Socket],
_header: null,
_keepAliveTimeout: 5000,
_onPendingData: [Function: bound updateOutgoingData],
req: [Circular *1],
_sent100: false,
_expect_continue: false,
_maxRequestsPerSocket: 0,
locals: [Object: null prototype] {},
writeHead: [Function: writeHead],
end: [Function: end],
flush: [Function: flush],
write: [Function: write],
on: [Function: on],
setHeader: [Function (anonymous)],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kUniqueHeaders)]: null
},
secret: undefined,
cookies: [Getter/Setter],
signedCookies: [Object: null prototype] {},
_parsedOriginalUrl: Url {
protocol: null,
slashes: null,
auth: null,
host: null,
port: null,
hostname: null,
hash: null,
search: null,
query: null,
pathname: '/provisioning',
path: '/provisioning',
href: '/provisioning',
_raw: '/provisioning'
},
sessionStore: MemoryStore {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
sessions: [Object: null prototype],
generate: [Function (anonymous)],
[Symbol(kCapture)]: false
},
sessionID: 'iiHrZbWQhP66GlTo_wB5NSRPy-VUxl4f',
session: Session {
cookie: [Object],
refreshToken: 'onvKXALxn8DkNSbfUKJNaTPLbMnWSikmew8_lf4lK_g'
},
csrfToken: [Function: csrfToken],
route: Route { path: '/provisioning', stack: [Array], methods: [Object] },
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
host: 'admin.albertinin.liferay.sh',
'cache-control': 'max-age=0',
'sec-ch-ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'navigate',
'sec-fetch-user': '?1',
'sec-fetch-dest': 'document',
referer: 'https://admin.albertinin.liferay.sh/provisioning/new',
'accept-encoding': 'gzip, deflate, br, zstd',
'accept-language': 'en-US,en;q=0.9',
'x-cloud-trace-context': 'b9e7c40760f0c4af13cbc9df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s%3AiiHrZbWQhP66GlTo_wB5NSRPy-VUxl4f.4yAccNKf5ItIGzVCV5C878gkjOYS8z%2Bf4lkWGURTbqg; XSRF-TOKEN=8QeK4IA3-Id-LNP4_AeEdTXHf-2F2g37Sulk',
via: '1.1 google',
'x-forwarded-for': '79.216.58.101, 34.36.185.218',
'x-forwarded-proto': 'https',
connection: 'Keep-Alive',
'x-forwarded-host': 'admin.albertinin.liferay.sh',
'x-forwarded-port': '3000'
},
[Symbol(kHeadersCount)]: 42,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(NextInternalRequestMeta)]: {
__NEXT_INIT_URL: 'https://localhost:3000/provisioning',
__NEXT_INIT_QUERY: {},
_protocol: 'https',
__NEXT_CLONABLE_BODY: [Object],
__nextIsLocaleDomain: false,
_nextIncrementalCache: [IncrementalCache],
_nextMatch: [Object]
}
},
res: <ref *2> ServerResponse {
_events: [Object: null prototype] {
finish: [Array],
error: [Function (anonymous)],
close: [Array]
},
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: true,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: false,
_closed: false,
socket: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 8,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: [Server],
_server: [Server],
parser: [HTTPParser],
on: [Function: socketListenerWrap],
addListener: [Function: socketListenerWrap],
prependListener: [Function: socketListenerWrap],
setEncoding: [Function: socketSetEncoding],
_paused: false,
_httpMessage: [Circular *2],
_peername: [Object],
[Symbol(async_id_symbol)]: 143302,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: false,
[Symbol(kSetKeepAliveInitialDelay)]: 0,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_header: null,
_keepAliveTimeout: 5000,
_onPendingData: [Function: bound updateOutgoingData],
req: <ref *1> IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
socket: [Socket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '/provisioning',
method: 'GET',
statusCode: null,
statusMessage: null,
client: [Socket],
_consuming: false,
_dumped: false,
next: [Function: next],
baseUrl: '',
originalUrl: '/provisioning',
_parsedUrl: [Url],
params: {},
query: {},
res: [Circular *2],
secret: undefined,
cookies: [Getter/Setter],
signedCookies: [Object: null prototype] {},
_parsedOriginalUrl: [Url],
sessionStore: [MemoryStore],
sessionID: 'iiHrZbWQhP66GlTo_wB5NSRPy-VUxl4f',
session: [Session],
csrfToken: [Function: csrfToken],
route: [Route],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 42,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(NextInternalRequestMeta)]: [Object]
},
_sent100: false,
_expect_continue: false,
_maxRequestsPerSocket: 0,
locals: [Object: null prototype] {},
writeHead: [Function: writeHead],
end: [Function: end],
flush: [Function: flush],
write: [Function: write],
on: [Function: on],
setHeader: [Function (anonymous)],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
'x-powered-by': [Array],
'set-cookie': [Array],
'x-frame-options': [Array],
'content-security-policy': [Array],
'strict-transport-security': [Array]
},
[Symbol(errored)]: null,
[Symbol(kUniqueHeaders)]: null
},
pathname: '/provisioning',
query: {},
asPath: '/provisioning',
locale: undefined,
locales: undefined,
defaultLocale: undefined,
AppTree: [Function: AppTree],
defaultGetInitialProps: [AsyncFunction: defaultGetInitialProps]
} <<<<<<<<<<< CONTEXT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment