Dear @zesu2210 @Vibha_Gondkar
>mock-relying-party-server. LOG
C:\Users\MICHAEL\Desktop\new\esignet-mock-services\esignet-mock-services\mock-relying-party-service>npm start
mock-relying-party-server@1.0.0 start
node app.js
Listening on port 8888…
http://localhost:8088/v1/esignet
http://localhost:8088/v1/esignet/oauth/v2/token
http://localhost:8088/v1/esignet
http://localhost:8088/v1/esignet/oauth/v2/token
AxiosError: Request failed with status code 400
at settle (C:\Users\MICHAEL\Desktop\new\esignet-mock-services\esignet-mock-services\mock-relying-party-service\node_modules\axios\dist\node\axios.cjs:1268:12)
at IncomingMessage.handleStreamEnd (C:\Users\MICHAEL\Desktop\new\esignet-mock-services\esignet-mock-services\mock-relying-party-service\node_modules\axios\dist\node\axios.cjs:2446:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: ‘ERR_BAD_REQUEST’,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
‘User-Agent’: ‘axios/1.1.3’,
‘Content-Length’: ‘828’,
‘Accept-Encoding’: ‘gzip, deflate, br’,
[Symbol(defaults)]: [Object]
},
method: ‘post’,
url: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
data: ‘code=6mqg3QMoE9QnOyWloRsZf58CuEde2E0RJcPBFnyPuWQ&client_id=healthservices&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fuserprofile&grant_type=authorization_code&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJoZWFsdGhzZXJ2aWNlcyIsInN1YiI6ImhlYWx0aHNlcnZpY2VzIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDg4L3YxL2VzaWduZXQvb2F1dGgvdjIvdG9rZW4iLCJpYXQiOjE3MjIzNDcwMjIsImV4cCI6MTcyMjM1MDYyMn0.GqINoWtSZ-IsbExVJm_ZnovLfMJycSKhr_JXNN6TLvhMPfwhcvGL16cmhp_aYKHoYhrSUBKIS7e9RfaVJfn1JZFxoFHoO67Tcd14nbnLVoMHMX5AF5BHRZf9nJAF9ZexuMjZxeKqejf2Y8RUj56xu3kdtDXDLmqC7vc9zuUgiGamwXPuZa2ZPIQ9UkhS9BbeH7Is08pfLblHyHQpqCkh44YbbzUEngxDustQXWats5PBpMPDVcgMaxBHAicnB1qgPBEZ61zUllZztSoTCdFB2gcMQNVE-xoJxCKnn9AhfPOpZ33CLbZOoYsG2wil6lLDVmmmORMt98rMGVAS0F5z-w’
},
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: false,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘828’,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
_closed: false,
socket: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: ‘localhost’,
_closeAfterHandlingError: false,
_events: [Object],
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 7,
_sockname: null,
_pendingData: null,
_pendingEncoding: ‘’,
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
autoSelectFamilyAttemptedAddresses: [Array],
[Symbol(async_id_symbol)]: 71,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [Timeout],
_idleStart: 1711305,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 70,
[Symbol(triggerId)]: 0
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_header: ‘POST /v1/esignet/oauth/v2/token HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/x-www-form-urlencoded\r\n’ +
‘User-Agent: axios/1.1.3\r\n’ +
‘Content-Length: 828\r\n’ +
‘Accept-Encoding: gzip, deflate, br\r\n’ +
‘Host: localhost:8088\r\n’ +
‘Connection: keep-alive\r\n’ +
‘\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: ‘http:’,
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: ‘lifo’,
maxTotalSockets: Infinity,
totalSocketCount: 2,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/v1/esignet/oauth/v2/token’,
_ended: true,
res: IncomingMessage {
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
socket: [Socket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: ‘1.1’,
complete: true,
rawHeaders: [Array],
rawTrailers: ,
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: ‘’,
method: null,
statusCode: 400,
statusMessage: ‘’,
client: [Socket],
_consuming: false,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
redirects: ,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 22,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘localhost’,
protocol: ‘http:’,
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: ,
_requestBodyLength: 828,
_requestBodyBuffers: ,
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[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(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: ‘’,
headers: AxiosHeaders {
‘set-cookie’: [Array],
‘x-content-type-options’: ‘nosniff’,
‘x-xss-protection’: ‘1; mode=block’,
‘cache-control’: ‘no-cache, no-store, max-age=0, must-revalidate’,
pragma: ‘no-cache’,
expires: ‘0’,
‘x-frame-options’: ‘DENY’,
‘content-type’: ‘application/json’,
‘transfer-encoding’: ‘chunked’,
date: ‘Tue, 30 Jul 2024 13:43:42 GMT’,
connection: ‘close’,
[Symbol(defaults)]: null
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [AxiosHeaders],
method: ‘post’,
url: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
data: ‘code=6mqg3QMoE9QnOyWloRsZf58CuEde2E0RJcPBFnyPuWQ&client_id=healthservices&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fuserprofile&grant_type=authorization_code&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJoZWFsdGhzZXJ2aWNlcyIsInN1YiI6ImhlYWx0aHNlcnZpY2VzIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDg4L3YxL2VzaWduZXQvb2F1dGgvdjIvdG9rZW4iLCJpYXQiOjE3MjIzNDcwMjIsImV4cCI6MTcyMjM1MDYyMn0.GqINoWtSZ-IsbExVJm_ZnovLfMJycSKhr_JXNN6TLvhMPfwhcvGL16cmhp_aYKHoYhrSUBKIS7e9RfaVJfn1JZFxoFHoO67Tcd14nbnLVoMHMX5AF5BHRZf9nJAF9ZexuMjZxeKqejf2Y8RUj56xu3kdtDXDLmqC7vc9zuUgiGamwXPuZa2ZPIQ9UkhS9BbeH7Is08pfLblHyHQpqCkh44YbbzUEngxDustQXWats5PBpMPDVcgMaxBHAicnB1qgPBEZ61zUllZztSoTCdFB2gcMQNVE-xoJxCKnn9AhfPOpZ33CLbZOoYsG2wil6lLDVmmmORMt98rMGVAS0F5z-w’
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: ,
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘828’,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: ‘POST /v1/esignet/oauth/v2/token HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/x-www-form-urlencoded\r\n’ +
‘User-Agent: axios/1.1.3\r\n’ +
‘Content-Length: 828\r\n’ +
‘Accept-Encoding: gzip, deflate, br\r\n’ +
‘Host: localhost:8088\r\n’ +
‘Connection: keep-alive\r\n’ +
‘\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/v1/esignet/oauth/v2/token’,
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘localhost’,
protocol: ‘http:’,
_redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: {
error: ‘invalid_client_id’,
error_description: ‘invalid_client_id’
}
}
}
AxiosError: Request failed with status code 400
at settle (C:\Users\MICHAEL\Desktop\new\esignet-mock-services\esignet-mock-services\mock-relying-party-service\node_modules\axios\dist\node\axios.cjs:1268:12)
at IncomingMessage.handleStreamEnd (C:\Users\MICHAEL\Desktop\new\esignet-mock-services\esignet-mock-services\mock-relying-party-service\node_modules\axios\dist\node\axios.cjs:2446:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: ‘ERR_BAD_REQUEST’,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
‘User-Agent’: ‘axios/1.1.3’,
‘Content-Length’: ‘828’,
‘Accept-Encoding’: ‘gzip, deflate, br’,
[Symbol(defaults)]: [Object]
},
method: ‘post’,
url: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
data: ‘code=6mqg3QMoE9QnOyWloRsZf58CuEde2E0RJcPBFnyPuWQ&client_id=healthservices&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fuserprofile&grant_type=authorization_code&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJoZWFsdGhzZXJ2aWNlcyIsInN1YiI6ImhlYWx0aHNlcnZpY2VzIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDg4L3YxL2VzaWduZXQvb2F1dGgvdjIvdG9rZW4iLCJpYXQiOjE3MjIzNDcwMjIsImV4cCI6MTcyMjM1MDYyMn0.GqINoWtSZ-IsbExVJm_ZnovLfMJycSKhr_JXNN6TLvhMPfwhcvGL16cmhp_aYKHoYhrSUBKIS7e9RfaVJfn1JZFxoFHoO67Tcd14nbnLVoMHMX5AF5BHRZf9nJAF9ZexuMjZxeKqejf2Y8RUj56xu3kdtDXDLmqC7vc9zuUgiGamwXPuZa2ZPIQ9UkhS9BbeH7Is08pfLblHyHQpqCkh44YbbzUEngxDustQXWats5PBpMPDVcgMaxBHAicnB1qgPBEZ61zUllZztSoTCdFB2gcMQNVE-xoJxCKnn9AhfPOpZ33CLbZOoYsG2wil6lLDVmmmORMt98rMGVAS0F5z-w’
},
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: false,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘828’,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
_closed: false,
socket: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: ‘localhost’,
_closeAfterHandlingError: false,
_events: [Object],
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_eventsCount: 7,
_sockname: null,
_pendingData: null,
_pendingEncoding: ‘’,
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *1],
autoSelectFamilyAttemptedAddresses: [Array],
[Symbol(async_id_symbol)]: 63,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [Timeout],
_idleStart: 1711352,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 62,
[Symbol(triggerId)]: 0
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_header: ‘POST /v1/esignet/oauth/v2/token HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/x-www-form-urlencoded\r\n’ +
‘User-Agent: axios/1.1.3\r\n’ +
‘Content-Length: 828\r\n’ +
‘Accept-Encoding: gzip, deflate, br\r\n’ +
‘Host: localhost:8088\r\n’ +
‘Connection: keep-alive\r\n’ +
‘\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: ‘http:’,
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: ‘lifo’,
maxTotalSockets: Infinity,
totalSocketCount: 2,
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/v1/esignet/oauth/v2/token’,
_ended: true,
res: IncomingMessage {
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
socket: [Socket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: ‘1.1’,
complete: true,
rawHeaders: [Array],
rawTrailers: ,
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: ‘’,
method: null,
statusCode: 400,
statusMessage: ‘’,
client: [Socket],
_consuming: true,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
redirects: ,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 22,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘localhost’,
protocol: ‘http:’,
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: ,
_requestBodyLength: 828,
_requestBodyBuffers: ,
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[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(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: ‘’,
headers: AxiosHeaders {
‘set-cookie’: [Array],
‘x-content-type-options’: ‘nosniff’,
‘x-xss-protection’: ‘1; mode=block’,
‘cache-control’: ‘no-cache, no-store, max-age=0, must-revalidate’,
pragma: ‘no-cache’,
expires: ‘0’,
‘x-frame-options’: ‘DENY’,
‘content-type’: ‘application/json’,
‘transfer-encoding’: ‘chunked’,
date: ‘Tue, 30 Jul 2024 13:43:42 GMT’,
connection: ‘close’,
[Symbol(defaults)]: null
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: ‘XSRF-TOKEN’,
xsrfHeaderName: ‘X-XSRF-TOKEN’,
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [AxiosHeaders],
method: ‘post’,
url: ‘http://localhost:8088/v1/esignet/oauth/v2/token’,
data: ‘code=6mqg3QMoE9QnOyWloRsZf58CuEde2E0RJcPBFnyPuWQ&client_id=healthservices&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fuserprofile&grant_type=authorization_code&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJoZWFsdGhzZXJ2aWNlcyIsInN1YiI6ImhlYWx0aHNlcnZpY2VzIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDg4L3YxL2VzaWduZXQvb2F1dGgvdjIvdG9rZW4iLCJpYXQiOjE3MjIzNDcwMjIsImV4cCI6MTcyMjM1MDYyMn0.GqINoWtSZ-IsbExVJm_ZnovLfMJycSKhr_JXNN6TLvhMPfwhcvGL16cmhp_aYKHoYhrSUBKIS7e9RfaVJfn1JZFxoFHoO67Tcd14nbnLVoMHMX5AF5BHRZf9nJAF9ZexuMjZxeKqejf2Y8RUj56xu3kdtDXDLmqC7vc9zuUgiGamwXPuZa2ZPIQ9UkhS9BbeH7Is08pfLblHyHQpqCkh44YbbzUEngxDustQXWats5PBpMPDVcgMaxBHAicnB1qgPBEZ61zUllZztSoTCdFB2gcMQNVE-xoJxCKnn9AhfPOpZ33CLbZOoYsG2wil6lLDVmmmORMt98rMGVAS0F5z-w’
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: ,
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘828’,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: ‘POST /v1/esignet/oauth/v2/token HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/x-www-form-urlencoded\r\n’ +
‘User-Agent: axios/1.1.3\r\n’ +
‘Content-Length: 828\r\n’ +
‘Accept-Encoding: gzip, deflate, br\r\n’ +
‘Host: localhost:8088\r\n’ +
‘Connection: keep-alive\r\n’ +
‘\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/v1/esignet/oauth/v2/token’,
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: ‘localhost’,
protocol: ‘http:’,
_redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: {
error: ‘invalid_client_id’,
error_description: ‘invalid_client_id’
}
}
}