Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AxiosError: Request failed with status code 401
- at settle (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/core/settle.js:19:12)
- at IncomingMessage.handleStreamEnd (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/adapters/http.js:599: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)
- at Axios.request (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/core/Axios.js:45:41)
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async createPaymentDB (file:///C:/xampp/htdocs/backend/index.js:323:5) {
- code: 'ERR_BAD_REQUEST',
- config: {
- transitional: {
- silentJSONParsing: true,
- forcedJSONParsing: true,
- clarifyTimeoutError: false
- },
- adapter: [ 'xhr', 'http', 'fetch' ],
- 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: Object [AxiosHeaders] {
- Accept: 'application/json, text/plain, */*',
- 'Content-Type': 'application/json',
- 'User-Agent': 'integra',
- access_token: '$aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O',
- 'Accept-Encoding': 'gzip, compress, deflate, br'
- },
- method: 'get',
- url: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- data: undefined
- },
- 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: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- maxRequestsOnConnectionReached: false,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- strictContentLength: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- _closed: true,
- socket: TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- secureConnecting: false,
- _SNICallback: null,
- servername: 'api.asaas.com',
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object: null prototype],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _parent: null,
- _host: 'api.asaas.com',
- _closeAfterHandlingError: false,
- _readableState: [ReadableState],
- _writableState: [WritableState],
- allowHalfOpen: false,
- _maxListeners: undefined,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: [TLSWrap],
- _requestCert: true,
- _rejectUnauthorized: true,
- timeout: 5000,
- parser: null,
- _httpMessage: null,
- autoSelectFamilyAttemptedAddresses: [Array],
- [Symbol(alpncallback)]: null,
- [Symbol(res)]: [TLSWrap],
- [Symbol(verified)]: true,
- [Symbol(pendingSession)]: null,
- [Symbol(async_id_symbol)]: -1,
- [Symbol(kHandle)]: [TLSWrap],
- [Symbol(lastWriteQueueSize)]: 0,
- [Symbol(timeout)]: Timeout {
- _idleTimeout: 5000,
- _idlePrev: [TimersList],
- _idleNext: [Timeout],
- _idleStart: 13933,
- _onTimeout: [Function: bound ],
- _timerArgs: undefined,
- _repeat: null,
- _destroyed: false,
- [Symbol(refed)]: false,
- [Symbol(kHasPrimitive)]: false,
- [Symbol(asyncId)]: 344,
- [Symbol(triggerId)]: 342
- },
- [Symbol(kBuffer)]: null,
- [Symbol(kBufferCb)]: null,
- [Symbol(kBufferGen)]: null,
- [Symbol(shapeMode)]: true,
- [Symbol(kCapture)]: false,
- [Symbol(kSetNoDelay)]: false,
- [Symbol(kSetKeepAlive)]: true,
- [Symbol(kSetKeepAliveInitialDelay)]: 1,
- [Symbol(kBytesRead)]: 0,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(connect-options)]: [Object]
- },
- _header: 'GET /v3/payments/pay_0ivblw669dwz27i6/pixQrCode HTTP/1.1\r\n' +
- 'Accept: application/json, text/plain, */*\r\n' +
- 'Content-Type: application/json\r\n' +
- 'User-Agent: integra\r\n' +
- 'access_token: $aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O\r\n' +
- 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
- 'Host: api.asaas.com\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: 443,
- protocol: 'https:',
- 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: 1,
- maxCachedSessions: 100,
- _sessionCache: [Object],
- [Symbol(shapeMode)]: false,
- [Symbol(kCapture)]: false
- },
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- joinDuplicateHeaders: undefined,
- path: '/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- _ended: true,
- res: IncomingMessage {
- _events: [Object],
- _readableState: [ReadableState],
- _maxListeners: undefined,
- socket: null,
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- rawHeaders: [Array],
- rawTrailers: [],
- joinDuplicateHeaders: undefined,
- aborted: false,
- upgrade: false,
- url: '',
- method: null,
- statusCode: 401,
- statusMessage: '',
- client: [TLSSocket],
- _consuming: false,
- _dumped: false,
- req: [Circular *1],
- _eventsCount: 4,
- responseUrl: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- redirects: [],
- [Symbol(shapeMode)]: true,
- [Symbol(kCapture)]: false,
- [Symbol(kHeaders)]: [Object],
- [Symbol(kHeadersCount)]: 18,
- [Symbol(kTrailers)]: null,
- [Symbol(kTrailersCount)]: 0
- },
- aborted: false,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- reusedSocket: false,
- host: 'api.asaas.com',
- protocol: 'https:',
- _redirectable: Writable {
- _events: [Object],
- _writableState: [WritableState],
- _maxListeners: undefined,
- _options: [Object],
- _ended: true,
- _ending: true,
- _redirectCount: 0,
- _redirects: [],
- _requestBodyLength: 0,
- _requestBodyBuffers: [],
- _eventsCount: 3,
- _onNativeResponse: [Function (anonymous)],
- _currentRequest: [Circular *1],
- _currentUrl: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- [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],
- access_token: [Array],
- 'accept-encoding': [Array],
- host: [Array]
- },
- [Symbol(errored)]: null,
- [Symbol(kHighWaterMark)]: 16384,
- [Symbol(kRejectNonStandardBodyWrites)]: false,
- [Symbol(kUniqueHeaders)]: null
- },
- response: {
- status: 401,
- statusText: '',
- headers: Object [AxiosHeaders] {
- 'content-length': '0',
- connection: 'keep-alive',
- date: 'Sun, 24 Nov 2024 22:25:49 GMT',
- server: 'nginx',
- 'x-cache': 'Error from cloudfront',
- via: '1.1 1474adcc0e66c9223c69479a37c85e70.cloudfront.net (CloudFront)',
- 'x-amz-cf-pop': 'MIA3-P8',
- 'alt-svc': 'h3=":443"; ma=86400',
- 'x-amz-cf-id': '8-AoWqMaDlEs0JiH-aYtCzPb2iZQvJbZZe2R-QmyacwTAuDvA-1x3A=='
- },
- config: {
- transitional: [Object],
- adapter: [Array],
- transformRequest: [Array],
- transformResponse: [Array],
- timeout: 0,
- xsrfCookieName: 'XSRF-TOKEN',
- xsrfHeaderName: 'X-XSRF-TOKEN',
- maxContentLength: -1,
- maxBodyLength: -1,
- env: [Object],
- validateStatus: [Function: validateStatus],
- headers: [Object [AxiosHeaders]],
- method: 'get',
- url: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- data: undefined
- },
- request: <ref *1> ClientRequest {
- _events: [Object: null prototype],
- _eventsCount: 7,
- _maxListeners: undefined,
- outputData: [],
- outputSize: 0,
- writable: true,
- destroyed: true,
- _last: true,
- chunkedEncoding: false,
- shouldKeepAlive: true,
- maxRequestsOnConnectionReached: false,
- _defaultKeepAlive: true,
- useChunkedEncodingByDefault: false,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- strictContentLength: false,
- _contentLength: 0,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- _closed: true,
- socket: [TLSSocket],
- _header: 'GET /v3/payments/pay_0ivblw669dwz27i6/pixQrCode HTTP/1.1\r\n' +
- 'Accept: application/json, text/plain, */*\r\n' +
- 'Content-Type: application/json\r\n' +
- 'User-Agent: integra\r\n' +
- 'access_token: $aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O\r\n' +
- 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
- 'Host: api.asaas.com\r\n' +
- 'Connection: keep-alive\r\n' +
- '\r\n',
- _keepAliveTimeout: 0,
- _onPendingData: [Function: nop],
- agent: [Agent],
- socketPath: undefined,
- method: 'GET',
- maxHeaderSize: undefined,
- insecureHTTPParser: undefined,
- joinDuplicateHeaders: undefined,
- path: '/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
- _ended: true,
- res: [IncomingMessage],
- aborted: false,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- reusedSocket: false,
- host: 'api.asaas.com',
- protocol: 'https:',
- _redirectable: [Writable],
- [Symbol(shapeMode)]: false,
- [Symbol(kCapture)]: false,
- [Symbol(kBytesWritten)]: 0,
- [Symbol(kNeedDrain)]: false,
- [Symbol(kNeedDrain)]: false,
- [Symbol(corked)]: 0,
- [Symbol(kOutHeaders)]: [Object: null prototype],
- [Symbol(kOutHeaders)]: [Object: null prototype],
- [Symbol(errored)]: null,
- [Symbol(kHighWaterMark)]: 16384,
- [Symbol(kRejectNonStandardBodyWrites)]: false,
- [Symbol(kUniqueHeaders)]: null
- },
- data: ''
- },
- status: 401
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement