Advertisement
LeonardoBradoks

Erro Asaas

Nov 24th, 2024
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.69 KB | None | 0 0
  1. AxiosError: Request failed with status code 401
  2. at settle (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/core/settle.js:19:12)
  3. at IncomingMessage.handleStreamEnd (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/adapters/http.js:599:11)
  4. at IncomingMessage.emit (node:events:531:35)
  5. at endReadableNT (node:internal/streams/readable:1696:12)
  6. at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
  7. at Axios.request (file:///C:/xampp/htdocs/backend/node_modules/axios/lib/core/Axios.js:45:41)
  8. at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  9. at async createPaymentDB (file:///C:/xampp/htdocs/backend/index.js:323:5) {
  10. code: 'ERR_BAD_REQUEST',
  11. config: {
  12. transitional: {
  13. silentJSONParsing: true,
  14. forcedJSONParsing: true,
  15. clarifyTimeoutError: false
  16. },
  17. adapter: [ 'xhr', 'http', 'fetch' ],
  18. transformRequest: [ [Function: transformRequest] ],
  19. transformResponse: [ [Function: transformResponse] ],
  20. timeout: 0,
  21. xsrfCookieName: 'XSRF-TOKEN',
  22. xsrfHeaderName: 'X-XSRF-TOKEN',
  23. maxContentLength: -1,
  24. maxBodyLength: -1,
  25. env: { FormData: [Function], Blob: [class Blob] },
  26. validateStatus: [Function: validateStatus],
  27. headers: Object [AxiosHeaders] {
  28. Accept: 'application/json, text/plain, */*',
  29. 'Content-Type': 'application/json',
  30. 'User-Agent': 'integra',
  31. access_token: '$aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O',
  32. 'Accept-Encoding': 'gzip, compress, deflate, br'
  33. },
  34. method: 'get',
  35. url: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  36. data: undefined
  37. },
  38. request: <ref *1> ClientRequest {
  39. _events: [Object: null prototype] {
  40. abort: [Function (anonymous)],
  41. aborted: [Function (anonymous)],
  42. connect: [Function (anonymous)],
  43. error: [Function (anonymous)],
  44. socket: [Function (anonymous)],
  45. timeout: [Function (anonymous)],
  46. finish: [Function: requestOnFinish]
  47. },
  48. _eventsCount: 7,
  49. _maxListeners: undefined,
  50. outputData: [],
  51. outputSize: 0,
  52. writable: true,
  53. destroyed: true,
  54. _last: true,
  55. chunkedEncoding: false,
  56. shouldKeepAlive: true,
  57. maxRequestsOnConnectionReached: false,
  58. _defaultKeepAlive: true,
  59. useChunkedEncodingByDefault: false,
  60. sendDate: false,
  61. _removedConnection: false,
  62. _removedContLen: false,
  63. _removedTE: false,
  64. strictContentLength: false,
  65. _contentLength: 0,
  66. _hasBody: true,
  67. _trailer: '',
  68. finished: true,
  69. _headerSent: true,
  70. _closed: true,
  71. socket: TLSSocket {
  72. _tlsOptions: [Object],
  73. _secureEstablished: true,
  74. _securePending: false,
  75. _newSessionPending: false,
  76. _controlReleased: true,
  77. secureConnecting: false,
  78. _SNICallback: null,
  79. servername: 'api.asaas.com',
  80. alpnProtocol: false,
  81. authorized: true,
  82. authorizationError: null,
  83. encrypted: true,
  84. _events: [Object: null prototype],
  85. _eventsCount: 9,
  86. connecting: false,
  87. _hadError: false,
  88. _parent: null,
  89. _host: 'api.asaas.com',
  90. _closeAfterHandlingError: false,
  91. _readableState: [ReadableState],
  92. _writableState: [WritableState],
  93. allowHalfOpen: false,
  94. _maxListeners: undefined,
  95. _sockname: null,
  96. _pendingData: null,
  97. _pendingEncoding: '',
  98. server: undefined,
  99. _server: null,
  100. ssl: [TLSWrap],
  101. _requestCert: true,
  102. _rejectUnauthorized: true,
  103. timeout: 5000,
  104. parser: null,
  105. _httpMessage: null,
  106. autoSelectFamilyAttemptedAddresses: [Array],
  107. [Symbol(alpncallback)]: null,
  108. [Symbol(res)]: [TLSWrap],
  109. [Symbol(verified)]: true,
  110. [Symbol(pendingSession)]: null,
  111. [Symbol(async_id_symbol)]: -1,
  112. [Symbol(kHandle)]: [TLSWrap],
  113. [Symbol(lastWriteQueueSize)]: 0,
  114. [Symbol(timeout)]: Timeout {
  115. _idleTimeout: 5000,
  116. _idlePrev: [TimersList],
  117. _idleNext: [Timeout],
  118. _idleStart: 13933,
  119. _onTimeout: [Function: bound ],
  120. _timerArgs: undefined,
  121. _repeat: null,
  122. _destroyed: false,
  123. [Symbol(refed)]: false,
  124. [Symbol(kHasPrimitive)]: false,
  125. [Symbol(asyncId)]: 344,
  126. [Symbol(triggerId)]: 342
  127. },
  128. [Symbol(kBuffer)]: null,
  129. [Symbol(kBufferCb)]: null,
  130. [Symbol(kBufferGen)]: null,
  131. [Symbol(shapeMode)]: true,
  132. [Symbol(kCapture)]: false,
  133. [Symbol(kSetNoDelay)]: false,
  134. [Symbol(kSetKeepAlive)]: true,
  135. [Symbol(kSetKeepAliveInitialDelay)]: 1,
  136. [Symbol(kBytesRead)]: 0,
  137. [Symbol(kBytesWritten)]: 0,
  138. [Symbol(connect-options)]: [Object]
  139. },
  140. _header: 'GET /v3/payments/pay_0ivblw669dwz27i6/pixQrCode HTTP/1.1\r\n' +
  141. 'Accept: application/json, text/plain, */*\r\n' +
  142. 'Content-Type: application/json\r\n' +
  143. 'User-Agent: integra\r\n' +
  144. 'access_token: $aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O\r\n' +
  145. 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
  146. 'Host: api.asaas.com\r\n' +
  147. 'Connection: keep-alive\r\n' +
  148. '\r\n',
  149. _keepAliveTimeout: 0,
  150. _onPendingData: [Function: nop],
  151. agent: Agent {
  152. _events: [Object: null prototype],
  153. _eventsCount: 2,
  154. _maxListeners: undefined,
  155. defaultPort: 443,
  156. protocol: 'https:',
  157. options: [Object: null prototype],
  158. requests: [Object: null prototype] {},
  159. sockets: [Object: null prototype] {},
  160. freeSockets: [Object: null prototype],
  161. keepAliveMsecs: 1000,
  162. keepAlive: true,
  163. maxSockets: Infinity,
  164. maxFreeSockets: 256,
  165. scheduling: 'lifo',
  166. maxTotalSockets: Infinity,
  167. totalSocketCount: 1,
  168. maxCachedSessions: 100,
  169. _sessionCache: [Object],
  170. [Symbol(shapeMode)]: false,
  171. [Symbol(kCapture)]: false
  172. },
  173. socketPath: undefined,
  174. method: 'GET',
  175. maxHeaderSize: undefined,
  176. insecureHTTPParser: undefined,
  177. joinDuplicateHeaders: undefined,
  178. path: '/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  179. _ended: true,
  180. res: IncomingMessage {
  181. _events: [Object],
  182. _readableState: [ReadableState],
  183. _maxListeners: undefined,
  184. socket: null,
  185. httpVersionMajor: 1,
  186. httpVersionMinor: 1,
  187. httpVersion: '1.1',
  188. complete: true,
  189. rawHeaders: [Array],
  190. rawTrailers: [],
  191. joinDuplicateHeaders: undefined,
  192. aborted: false,
  193. upgrade: false,
  194. url: '',
  195. method: null,
  196. statusCode: 401,
  197. statusMessage: '',
  198. client: [TLSSocket],
  199. _consuming: false,
  200. _dumped: false,
  201. req: [Circular *1],
  202. _eventsCount: 4,
  203. responseUrl: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  204. redirects: [],
  205. [Symbol(shapeMode)]: true,
  206. [Symbol(kCapture)]: false,
  207. [Symbol(kHeaders)]: [Object],
  208. [Symbol(kHeadersCount)]: 18,
  209. [Symbol(kTrailers)]: null,
  210. [Symbol(kTrailersCount)]: 0
  211. },
  212. aborted: false,
  213. timeoutCb: null,
  214. upgradeOrConnect: false,
  215. parser: null,
  216. maxHeadersCount: null,
  217. reusedSocket: false,
  218. host: 'api.asaas.com',
  219. protocol: 'https:',
  220. _redirectable: Writable {
  221. _events: [Object],
  222. _writableState: [WritableState],
  223. _maxListeners: undefined,
  224. _options: [Object],
  225. _ended: true,
  226. _ending: true,
  227. _redirectCount: 0,
  228. _redirects: [],
  229. _requestBodyLength: 0,
  230. _requestBodyBuffers: [],
  231. _eventsCount: 3,
  232. _onNativeResponse: [Function (anonymous)],
  233. _currentRequest: [Circular *1],
  234. _currentUrl: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  235. [Symbol(shapeMode)]: true,
  236. [Symbol(kCapture)]: false
  237. },
  238. [Symbol(shapeMode)]: false,
  239. [Symbol(kCapture)]: false,
  240. [Symbol(kBytesWritten)]: 0,
  241. [Symbol(kNeedDrain)]: false,
  242. [Symbol(corked)]: 0,
  243. [Symbol(kOutHeaders)]: [Object: null prototype] {
  244. accept: [Array],
  245. 'content-type': [Array],
  246. 'user-agent': [Array],
  247. access_token: [Array],
  248. 'accept-encoding': [Array],
  249. host: [Array]
  250. },
  251. [Symbol(errored)]: null,
  252. [Symbol(kHighWaterMark)]: 16384,
  253. [Symbol(kRejectNonStandardBodyWrites)]: false,
  254. [Symbol(kUniqueHeaders)]: null
  255. },
  256. response: {
  257. status: 401,
  258. statusText: '',
  259. headers: Object [AxiosHeaders] {
  260. 'content-length': '0',
  261. connection: 'keep-alive',
  262. date: 'Sun, 24 Nov 2024 22:25:49 GMT',
  263. server: 'nginx',
  264. 'x-cache': 'Error from cloudfront',
  265. via: '1.1 1474adcc0e66c9223c69479a37c85e70.cloudfront.net (CloudFront)',
  266. 'x-amz-cf-pop': 'MIA3-P8',
  267. 'alt-svc': 'h3=":443"; ma=86400',
  268. 'x-amz-cf-id': '8-AoWqMaDlEs0JiH-aYtCzPb2iZQvJbZZe2R-QmyacwTAuDvA-1x3A=='
  269. },
  270. config: {
  271. transitional: [Object],
  272. adapter: [Array],
  273. transformRequest: [Array],
  274. transformResponse: [Array],
  275. timeout: 0,
  276. xsrfCookieName: 'XSRF-TOKEN',
  277. xsrfHeaderName: 'X-XSRF-TOKEN',
  278. maxContentLength: -1,
  279. maxBodyLength: -1,
  280. env: [Object],
  281. validateStatus: [Function: validateStatus],
  282. headers: [Object [AxiosHeaders]],
  283. method: 'get',
  284. url: 'https://api.asaas.com/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  285. data: undefined
  286. },
  287. request: <ref *1> ClientRequest {
  288. _events: [Object: null prototype],
  289. _eventsCount: 7,
  290. _maxListeners: undefined,
  291. outputData: [],
  292. outputSize: 0,
  293. writable: true,
  294. destroyed: true,
  295. _last: true,
  296. chunkedEncoding: false,
  297. shouldKeepAlive: true,
  298. maxRequestsOnConnectionReached: false,
  299. _defaultKeepAlive: true,
  300. useChunkedEncodingByDefault: false,
  301. sendDate: false,
  302. _removedConnection: false,
  303. _removedContLen: false,
  304. _removedTE: false,
  305. strictContentLength: false,
  306. _contentLength: 0,
  307. _hasBody: true,
  308. _trailer: '',
  309. finished: true,
  310. _headerSent: true,
  311. _closed: true,
  312. socket: [TLSSocket],
  313. _header: 'GET /v3/payments/pay_0ivblw669dwz27i6/pixQrCode HTTP/1.1\r\n' +
  314. 'Accept: application/json, text/plain, */*\r\n' +
  315. 'Content-Type: application/json\r\n' +
  316. 'User-Agent: integra\r\n' +
  317. 'access_token: $aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6O\r\n' +
  318. 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
  319. 'Host: api.asaas.com\r\n' +
  320. 'Connection: keep-alive\r\n' +
  321. '\r\n',
  322. _keepAliveTimeout: 0,
  323. _onPendingData: [Function: nop],
  324. agent: [Agent],
  325. socketPath: undefined,
  326. method: 'GET',
  327. maxHeaderSize: undefined,
  328. insecureHTTPParser: undefined,
  329. joinDuplicateHeaders: undefined,
  330. path: '/v3/payments/pay_0ivblw669dwz27i6/pixQrCode',
  331. _ended: true,
  332. res: [IncomingMessage],
  333. aborted: false,
  334. timeoutCb: null,
  335. upgradeOrConnect: false,
  336. parser: null,
  337. maxHeadersCount: null,
  338. reusedSocket: false,
  339. host: 'api.asaas.com',
  340. protocol: 'https:',
  341. _redirectable: [Writable],
  342. [Symbol(shapeMode)]: false,
  343. [Symbol(kCapture)]: false,
  344. [Symbol(kBytesWritten)]: 0,
  345. [Symbol(kNeedDrain)]: false,
  346. [Symbol(kNeedDrain)]: false,
  347. [Symbol(corked)]: 0,
  348. [Symbol(kOutHeaders)]: [Object: null prototype],
  349. [Symbol(kOutHeaders)]: [Object: null prototype],
  350. [Symbol(errored)]: null,
  351. [Symbol(kHighWaterMark)]: 16384,
  352. [Symbol(kRejectNonStandardBodyWrites)]: false,
  353. [Symbol(kUniqueHeaders)]: null
  354. },
  355. data: ''
  356. },
  357. status: 401
  358. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement