kakaoRes {
status: 200,
statusText: 'OK',
headers: AxiosHeaders {
date: 'Wed, 30 Nov 2022 07:31:08 GMT',
'content-type': 'application/json;charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate',
pragma: 'no-cache',
expires: '0',
'x-xss-protection': '1; mode=block',
'x-frame-options': 'DENY',
'x-content-type-options': 'nosniff',
kakao: 'Talk',
'access-control-allow-origin': '*',
'access-control-allow-methods': 'GET, POST, OPTIONS',
'access-control-allow-headers': 'Authorization, KA, Origin, X-Requested-With, Content-Type, Accept'
},
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: null },
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
'User-Agent': 'axios/1.2.0',
'Content-Length': '282',
'Accept-Encoding': 'gzip, deflate, br'
},
method: 'post',
url: 'https://kauth.kakao.com/oauth/token',
data: 'grant_type=authorization_code&client_id=75ceaab839b136d44c26e4d24a87406d&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Foauth2%2Fcallback%2Fkakao&code=TJLsbSFOuUZmA9WKiv7DksGkLztyyzZgty31H_recqel6-h-4GiYZurDp1Ap8hTQpYlUMwo9cpgAAAGEx3JMSA&client_secret=8ERrRFrTKyLJdDjKTuvm4JM1YeVvKwrs'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '282',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'kauth.kakao.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'kauth.kakao.com',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 151,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /oauth/token HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded;charset=utf-8\r\n' +
'User-Agent: axios/1.2.0\r\n' +
'Content-Length: 282\r\n' +
'Accept-Encoding: gzip, deflate, br\r\n' +
'Host: kauth.kakao.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
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
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/oauth/token',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 200,
statusMessage: 'OK',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://kauth.kakao.com/oauth/token',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 30,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'kauth.kakao.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 282,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://kauth.kakao.com/oauth/token',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kEndCalled)]: true,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
'accept-encoding': [Array],
host: [Array]
},
[Symbol(kUniqueHeaders)]: null
},
data: '\x1F�\b\x00\x00\x00\x00\x00\x04\x03eS[Ӛ0\x10�+�ϵ�ET���\n' +
'J�\x10��\x17�K�\x00\x01�"B����ڙN��K���s��=ߗQ���\x0B��@��۲8��˲�ݿ�Uk\x17Wu\'o#&�6\x07��ߤM�OA�vr�ND�\x0B�NI)u�/�_\x10a?5���(jQKo[toQ��!�Xv\x7FЄs�vѪ�ty�[&��>��ѧzN\x12(��\x13�C�\t��?(h��ȳ��5!�5� �,8Z,=�\x06\x07\x05�������g�q�I��"�\f�%���]������|ڶ3k,����\x02g�o`\x1Ex���\x01��!�\\�\x01�\x18p4&@\x1C&P4\x06�\x1E<P$.��N�\x00\x0B����\x03���`�x�V�"I�k���&�\x1Cl�*\x07�7o\x06\x03�G��rN&�G2&=�g\x13�^\x11w`��c�{\x0B��\x009����\x03?\x1B��~�\x1C\n' +
'�B�S��\x16�@�6�?\\��^��x\x1C{�p.\x1B�T\x02�k�����~�\x10��mZ�ͬ�c\x1Avi�e�ˈ�y�\x13�Һ�sq\x1B��\x11�[�h�li��Uq\x15íZ{n�Z\\���#Qѝ�\'�]����گt�9f~�5�Ï��&1\x1E��\x00ϲ��`�@�7�d���ᜓ�\r\x1A\x15f�+�j_�t��N�rڞ\f��F�"VGwM�V���j�\x19�26���lf^|�[\x00\\�\x11%\x7FܧX�/��\'���<��k3��Ȑ��\x1E��<��{,+������\x1C����2����X�q�u�\x11fM[�w\x04f���6f��K�U�p�MF\x1A.%Q���TdN�$\x00)\x12Ra1\f�]��S��6��E\'\x16�\x1BL�?�TZ\x1C+��e�Կ\x05��>K�iA\x05X\x0FU\x1F"\x12�r�@U��E�靨�\x164���)���b��\x16UDТ��\n' +
'��@��e\x16��+�;^\x14�\x1F?\x01�\x01\x15\f�\x03\x00\x00'
}
kakaoRes.data eS[Ӛ0�+�ϵ�ET���
J����K��"B����ڙN��K���s��=ߗQ���
��@��۲8��˲�ݿ�UkWu'o#&�6��ߤM�OA�vr�ND�
�NI)u�/�_a?5���(jQKo[toQ��!�XvЄs�vѪ�ty�[&��>��ѧzN(���C� ��?(h��ȳ��5!�5� �,8Z,=��������g�q�I��"�
�%���]������|ڶ3k,����g�o`x�����!�\��p4&@&P4�<P$.��N�
�������`�x�V�"I�k���&�l�*�7o�G��rN&�G2&=�g�^w`��c�{
��9����?�~�
f�+�j_�t��N�rڞ�^��x{�p.T�k�����~���mZ�ͬ�cvi�e�ˈ�y��Һ�sq��[�h�li��UqíZ{n�Z\�#Qѝ�'�]����گt�9f~�5�Ï��&1��ϲ��`�@�7�d���ᜓ�
��F�"VGwM�V���j��26���lf^|�[\�%ܧX�/��'���<��k3��Ȑ����<��{,+����������2����X�q�u�fM[�wf���6f��K�U�p�MF.%Q���TdN�$)Ra1
�]��S��6��E'��?�TZ+��e�Կ��>K�iAXU"�r�@U��E�靨�4���)���b��UDТ��
��@��e��+�;^�?�
�
아래 내용에 질문 드렸었는데 데이터 반환이 위의 코드와 같이 옵니다…
서비스 로직 확인과정에서 특별한 문제는 찾지 못했습니다. 혹시 해결책이 있을까요? 부탁드립니다.