Controller did not find "refresh_token" in cookies.
Controller did not find "refresh_token" in cookies.
Controller did not find "refresh_token" in cookies.
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:00 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'AkTLGwf3XiwaBkFAL3p4v7E'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Custom template not available, using fallback hello_world for 33645545808
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:00 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'ATr-ba_-xsC886XpYSX9SEG'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Error sending appointment confirmation: AxiosError: Request failed with status code 401
    at settle (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:2090:12)
    at BrotliDecompress.handleStreamEnd (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:3207:11)
    at BrotliDecompress.emit (node:events:536:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:4317:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async WhatsAppNotificationService.sendTemplateMessage (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:322:30)
    at async WhatsAppNotificationService.sendAppointmentConfirmation (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:45:17)
    at async AppointmentService.confirmAppointmentWithSlotCheck (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/appointments/appointment.service.js:370:17)
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
  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 [FormData]], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      Authorization: 'Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD',
      'User-Agent': 'axios/1.11.0',
      'Content-Length': '131',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
    data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
    allowAbsoluteUrls: true
  },
  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: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '131',
    _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: 'graph.facebook.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'graph.facebook.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: [TimersList],
        _idleStart: 23149213,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 9049,
        [Symbol(triggerId)]: 9047
      },
      [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: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
      'User-Agent: axios/1.11.0\r\n' +
      'Content-Length: 131\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: graph.facebook.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: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/v22.0/799565043241714/messages',
    _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: 'Unauthorized',
      client: [TLSSocket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 50,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'graph.facebook.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 131,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      [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],
      authorization: [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: 401,
    statusText: 'Unauthorized',
    headers: Object [AxiosHeaders] {
      'debug-link': 'https://www.meta.com/debug/?mid=3b61b1893bdda23cc09efe288a53acdf',
      'error-mid': '3b61b1893bdda23cc09efe288a53acdf',
      vary: 'Origin, Accept-Encoding',
      'access-control-allow-origin': '*',
      'x-fb-aed': '589',
      'cross-origin-resource-policy': 'cross-origin',
      'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}',
      'content-type': 'application/json',
      'www-authenticate': 'OAuth "Facebook Platform" "invalid_token" "Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:00 PDT."',
      'strict-transport-security': 'max-age=15552000; preload',
      pragma: 'no-cache',
      'cache-control': 'no-store',
      expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
      'x-fb-request-id': 'ATr-ba_-xsC886XpYSX9SEG',
      'x-fb-trace-id': 'CtJz4nz3Myp',
      'x-fb-rev': '1028205439',
      'x-fb-debug': 'T9mdGyxTe8o5eSXiatqVD+4AN3H+BvY5lEJRU0AGujKCSyLreFjgxH37r0QVlK1xIy+pHiEIUpImaS1RV0VK4g==',
      date: 'Thu, 09 Oct 2025 13:08:00 GMT',
      'proxy-status': 'http_request_error; e_fb_vipaddr="AcMs3vQHDJYdzgGMQwPTlbwXD1AptoG4oT7hS1zyN5hnHz6WzI1SLXW6DKHSGJ2cI59JpHMHT_weCBDE3Q8aOxFWJXIfY5gP2vBq"; e_clientaddr="AcNsYPN01Bl3nYsFJX9-5HbY4IU3KTUEL9XcSO3XRMWDL66038rCs4UuzqqRodweQyWhXyoEbMwoq1kzgaxgZNDWS6w1QuQUpTiOYjHF_qtddwTw"; e_upip="AcN9Vc33oauPt7qocG3PPCcHvNf9hDy2AdyqYXPyH1Gik1f2Zt4yoyqQd3yTeZkGKvCMLFsq1yNhOhR65V_4Qv4Lo0KpS3QPDW-EVsc"; e_fb_zone="AcMBnjGaZUe4v4KSugtEfVzzzuhpfLcqCpTDkLmYPa8Aepep2fBe5KshC1KgLV0A"; e_fb_twtaskhandle="AcMpoesgc7Y9RDfj6c-Aufdt9om9jY29eIadQhSYJr49Ff7sxhDjvIlB-Kmf_iWrUfKBPCgOYN-ewmcQzoXBAwsp7tI7rLQTw3Wjs6jTCpwsng"; e_proxy="AcMxdkdQJJmJUw4hTh8Alv-dF5aBSMT2TwOa4YbluA9J6rEFJxlXAUGC83zCeCimQCpK9bV8Id945GfZDDpK", http_request_error; e_fb_vipaddr="AcNN0vXQSvaQfnm6utdZdN9gxnMJ7O-1HUlpiV7hqIU0Tb9TQOzQIdoGvOkd_w94rduPQUkDnHAQlvzTdqPPTtilfmP1mZvmPtg"; e_clientaddr="AcPzi6XRB9eHN4qAJd4qOH1jJ53lF0rSbiN6hJk_3euqoKo46oBTFSJehstoQG6YP1KIG8_5lcTLBGHy3T_hdfSkT8HaTu9-m5O9bP4pDLgOMA"; e_upip="AcNzzH-gjhtpyiTg1MmzgQVAhB8cozaccP43aOv6slt6E-Xn8dGRLoF58S_TyHtOxaSCgCEW4tquU7MdEGyp9BuPeiUBp2krwBfd"; e_fb_zone="AcP2R7FRJNMmd5OoxubAqVlZ5EwzkRUUU0FXRtjrFJqQJBHikLUtdvVFq_936A"; e_fb_twtaskhandle="AcO7pvusaufbXREGvLYuJMA9Ys-DtFj5MJciYBVcWxh12RWBB17wtsaPp1gTRaWHbjDUeVN_qf2NN3otDuQKULacof4sXYf0890"; e_proxy="AcMwA5Q0IFxqlnW-exPd0GqIQqWemir3hUAS_UYHTNFp_BvCy0h6v74kaUbUzTcw-dquuDoMic1Dg6c"',
      'x-fb-connection-quality': 'GOOD; q=0.7, rtt=69, rtx=0, c=10, mss=1380, tbw=6223, tp=-1, tpl=-1, uplat=56, ullat=0',
      'alt-svc': 'h3=":443"; ma=86400',
      connection: 'keep-alive',
      'content-length': '194'
    },
    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: 'post',
      url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
      allowAbsoluteUrls: true
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '131',
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
        'User-Agent: axios/1.11.0\r\n' +
        'Content-Length: 131\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: graph.facebook.com\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: '/v22.0/799565043241714/messages',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: true,
      host: 'graph.facebook.com',
      protocol: 'https:',
      _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: [Object] }
  },
  status: 401
}
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:16 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'A5VOc8aj0ZiW-oO5Yn3wd6L'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Custom template not available, using fallback hello_world for 33645545808
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:16 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'AArF9txmf1qOSkS1o5x6bno'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Error sending appointment confirmation: AxiosError: Request failed with status code 401
    at settle (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:2090:12)
    at BrotliDecompress.handleStreamEnd (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:3207:11)
    at BrotliDecompress.emit (node:events:536:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:4317:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async WhatsAppNotificationService.sendTemplateMessage (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:322:30)
    at async WhatsAppNotificationService.sendAppointmentConfirmation (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:45:17)
    at async AppointmentService.confirmAppointmentWithSlotCheck (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/appointments/appointment.service.js:370:17)
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
  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 [FormData]], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      Authorization: 'Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD',
      'User-Agent': 'axios/1.11.0',
      'Content-Length': '131',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
    data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
    allowAbsoluteUrls: true
  },
  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: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '131',
    _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: 'graph.facebook.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'graph.facebook.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: [TimersList],
        _idleStart: 23164877,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 9935,
        [Symbol(triggerId)]: 9933
      },
      [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: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
      'User-Agent: axios/1.11.0\r\n' +
      'Content-Length: 131\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: graph.facebook.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: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/v22.0/799565043241714/messages',
    _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: 'Unauthorized',
      client: [TLSSocket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 50,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'graph.facebook.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 131,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      [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],
      authorization: [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: 401,
    statusText: 'Unauthorized',
    headers: Object [AxiosHeaders] {
      'debug-link': 'https://www.meta.com/debug/?mid=3b61b1893bdda23cc09efe288a53acdf',
      'error-mid': '3b61b1893bdda23cc09efe288a53acdf',
      vary: 'Origin, Accept-Encoding',
      'access-control-allow-origin': '*',
      'x-fb-aed': '589',
      'cross-origin-resource-policy': 'cross-origin',
      'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}',
      'content-type': 'application/json',
      'www-authenticate': 'OAuth "Facebook Platform" "invalid_token" "Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Thursday, 09-Oct-25 06:08:16 PDT."',
      'strict-transport-security': 'max-age=15552000; preload',
      pragma: 'no-cache',
      'cache-control': 'no-store',
      expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
      'x-fb-request-id': 'AArF9txmf1qOSkS1o5x6bno',
      'x-fb-trace-id': 'ByNPbzwVcxy',
      'x-fb-rev': '1028205439',
      'x-fb-debug': 'k5xs6GWx4ayHPDItSCZcXRAlsIj7iYy8ymUNqcnFxLMAmPA/aDoH/Yu6OrXIyQmRfH/xRcyv2WdMsApJV5BvSA==',
      date: 'Thu, 09 Oct 2025 13:08:16 GMT',
      'proxy-status': 'http_request_error; e_fb_vipaddr="AcOcQvPD8bMf1YpiUYw2ND0DUYeOX2eqPQs9d0d22cvC2a1iWIFKPobCJi_QzxnOEGy4HE_T8nASUB7Bz7jxqf7vxsRqV9SHgfYz"; e_clientaddr="AcOP0bqDobggmh4nRgPywK_HzJNPzWYF6cRm_SdNAgDeEk2z4mfS20PDOPjygydB1lXbalFkZIm-PTlxzPCvi9-ICH4jR1hq_xgmTlpuooJH0bmy9w"; e_upip="AcPLnt2MV3KJPS9ZKnNtTchD1pH3taQ5q5KmBtS84geN1fGhYGgv49gAn_mcvVLAWKePF5_c4M2tWcAWVJTRTLIUOOv_NXKu8KEjpYvdIA"; e_fb_zone="AcMy0-TQjoVvnVBavZ_uWJ12Qzrv1pSy8QvJVNh0BsRvw70tRCdn9GN1a9C7mwS-"; e_fb_twtaskhandle="AcNXEmsSFUWG58QM83A2TGlbmHaxc2NNl24Kkz7yDq6Kt2M4g39dSJLWJpN3tliD6lFqbLlTncL9fkhsoGRwTKEHuLxK2-KWS6jHI7d6T96V2Wc"; e_proxy="AcPEVTT2m1gbockPNB4Jj6vhKAR-0BEQKU5UxQNyjbi2HC4CDgMLFb_BkCwXqJZThRo8Tct1MsjJC2SqzP6t", http_request_error; e_fb_vipaddr="AcMhiycvFwfabcphYi_sT5iVENcwSWbWlEO2j8y8ZTDNlQAvz6T0SX3kKOslqfZhFWdGZMhVuJkXXnhAV35DlbFQ8KOarAyVako"; e_clientaddr="AcM5Ssu8KRWvTmL5UHR_ld327vHDlUFTGpBrarYfsbVnvnvnuOWBZSRizeBwpHlTAXhVQXbvCBGMlXGX8Ens74ZWFPtRQztXAv4-9aETUZ8Y4A"; e_upip="AcNBBUSZwcV4DGXoivkiVSQ7-bEVr4AU1dchV9cKabncpXZ2flcfzrKmVtD-S1wbTgEYkElvFSnFgmgaYMc2NCa43xFaMFw5cSaF"; e_fb_zone="AcPABpbnbwlOiWnkt9zmpaXijcdUCj1zJ52NEag6d23S3Bnd1fRnwk_6NTeGEQ"; e_fb_twtaskhandle="AcMXxdkj4GJBuMnNd1ig9-XlC5oks9KATXNJQJIWfvPtYAHlFbJVXZ9Uvq4PKkNn1yUDfhVFcDF0F8V0ViswTwj3eHKC_1F-HlPC"; e_proxy="AcOnn9qyWRY2GMIr6p8XtvRcWhbTUCoUw2ClB5RS4V2m9wyx_QfpimBlphkZQPlBfXHYaWuxtbI0hcU"',
      'x-fb-connection-quality': 'GOOD; q=0.7, rtt=72, rtx=0, c=10, mss=1380, tbw=3147, tp=-1, tpl=-1, uplat=61, ullat=0',
      'alt-svc': 'h3=":443"; ma=86400',
      connection: 'keep-alive',
      'content-length': '191'
    },
    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: 'post',
      url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
      allowAbsoluteUrls: true
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '131',
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
        'User-Agent: axios/1.11.0\r\n' +
        'Content-Length: 131\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: graph.facebook.com\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: '/v22.0/799565043241714/messages',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: true,
      host: 'graph.facebook.com',
      protocol: 'https:',
      _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: [Object] }
  },
  status: 401
}
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 05:01:49 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'AO97BRUe_AkXRFAWO2Zojr_'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Custom template not available, using fallback hello_world for 33645545808
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 05:01:49 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'AcTqxrrWyag4Upve6IWtvIy'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Error sending appointment confirmation: AxiosError: Request failed with status code 401
    at settle (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:2090:12)
    at BrotliDecompress.handleStreamEnd (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:3207:11)
    at BrotliDecompress.emit (node:events:536:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:4317:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async WhatsAppNotificationService.sendTemplateMessage (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:322:30)
    at async WhatsAppNotificationService.sendAppointmentConfirmation (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:45:17)
    at async AppointmentService.confirmAppointmentWithSlotCheck (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/appointments/appointment.service.js:370:17)
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
  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 [FormData]], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      Authorization: 'Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD',
      'User-Agent': 'axios/1.11.0',
      'Content-Length': '131',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
    data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
    allowAbsoluteUrls: true
  },
  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: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '131',
    _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: 'graph.facebook.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'graph.facebook.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: [TimersList],
        _idleStart: 105577683,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 31738,
        [Symbol(triggerId)]: 31736
      },
      [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: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
      'User-Agent: axios/1.11.0\r\n' +
      'Content-Length: 131\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: graph.facebook.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: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/v22.0/799565043241714/messages',
    _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: 'Unauthorized',
      client: [TLSSocket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 50,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'graph.facebook.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 131,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      [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],
      authorization: [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: 401,
    statusText: 'Unauthorized',
    headers: Object [AxiosHeaders] {
      'debug-link': 'https://www.meta.com/debug/?mid=3b61b1893bdda23cc09efe288a53acdf',
      'error-mid': '3b61b1893bdda23cc09efe288a53acdf',
      vary: 'Origin, Accept-Encoding',
      'access-control-allow-origin': '*',
      'x-fb-aed': '590',
      'cross-origin-resource-policy': 'cross-origin',
      'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}',
      'content-type': 'application/json',
      'www-authenticate': 'OAuth "Facebook Platform" "invalid_token" "Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 05:01:49 PDT."',
      'strict-transport-security': 'max-age=15552000; preload',
      pragma: 'no-cache',
      'cache-control': 'no-store',
      expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
      'x-fb-request-id': 'AcTqxrrWyag4Upve6IWtvIy',
      'x-fb-trace-id': 'Ame55eeGuzy',
      'x-fb-rev': '1028259376',
      'x-fb-debug': 'qBN9UyNOAZ7RQBEWw9ilqZT7VuYlYj0VIWFHbRc2YtwEtZULwxkMGLLUXemyUtGf4/cGlG9q8BXXJtWjETLmIg==',
      date: 'Fri, 10 Oct 2025 12:01:49 GMT',
      'proxy-status': 'http_request_error; e_fb_vipaddr="AcNzFQ22LAw4bYHVAzYwIctCoNjGZ2QZyZvCLM7rNBXHzvDQxSb4ogxxeKaigG1riEVdo9Z7nLPOuTlQ56dr-jqlU-P7MCd_MWWc"; e_clientaddr="AcPCE5dkTLcLpI5ToF_TRWyBkF8kzcUcV0gFvfmKGY6hr4jq2cRjYT6bCmtqmuVF-9ZgKNwoiq7zVvEYTxA9PydRmnC_YV5ty445DIVkTzAF8VVA"; e_upip="AcNTZrVcOa6syyhZJB23ZEt13XYfrPn8fQqswvOU_7m27_Ivg-YIDfYnG3ReQZJlZVhEsCKmB0kIZ0iE_BHTgNTVBW0Yf05fbnJ8b7eS6TY"; e_fb_zone="AcMssqNPipUE5QU6YmThIxw9pCMsC2tJ41Jty9k3KxDP1krsb-ld8KGEjf_MELwa"; e_fb_twtaskhandle="AcOYEyKNZy7BigdycA83OR4dykFGN7gZbw7OlkroHvIciCOTZL8Ai6RoSOR43WCbv3uRAKlXQIbZ3QziSh6VjvvckRkSiit5yppEMaJDiGHYDn0"; e_proxy="AcOrZlkLFMpZjhl6hrEPwQPPHg-_iizhGCc_emzr6mwbmpZCF-yvvet_1KX0R0j5L25g_7Zpl41LeAHw2gin", http_request_error; e_fb_vipaddr="AcOB2Jnn-ODdGLJMWfVkkGledBVk_IZ6Meisn1GdYBkcv8hr04l8viROUhcnVQ7x-GoWaPMF25YRu6ZOkY0qy1007fXQ3_wpG_I"; e_clientaddr="AcMNvZqvJyrH2z5zhzs1fqR85TByVBCCtSEJeFl4fczGPbabkMcDa80_LdWEpHd-neIPamgo6U_2Vqcrr9mghC3OrhA4o6RZBGDCQ8uG-M7riA"; e_upip="AcPSy_NRPooQS6DS1C4UkMVMHXChPhapIiPWX2pOaO2Z_qPIQodZoVZ2-pKQR9KlbwaKI3OmP7gdvLJMENLflWaFl4aHGwXX319e"; e_fb_zone="AcPp7yKpLW42YPCcLu8E2AGjN3pnzBUksaq9aSzF0M8KSUS3yYbLCU6KT0VZDw"; e_fb_twtaskhandle="AcOE7B6drsr5K4oyWyowCh1imq8hX96QFszEJHemPx-lIGzQgxcWJ7G9rZXv3ymT2M8flQIbvf9Uu6Zcjz0JlVyZ03RubJvtoGgOl24"; e_proxy="AcMSiNFjJjDthqeT1dW4wGSYdtaCL5RANadwg7uEaxi_Wv6KbG6F9VJuPryP9RvLtzbggPsF9DvymFw"',
      'x-fb-connection-quality': 'EXCELLENT; q=0.9, rtt=20, rtx=0, c=10, mss=1380, tbw=6240, tp=-1, tpl=-1, uplat=62, ullat=0',
      'alt-svc': 'h3=":443"; ma=86400',
      connection: 'keep-alive',
      'content-length': '201'
    },
    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: 'post',
      url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
      allowAbsoluteUrls: true
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '131',
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
        'User-Agent: axios/1.11.0\r\n' +
        'Content-Length: 131\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: graph.facebook.com\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: '/v22.0/799565043241714/messages',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: true,
      host: 'graph.facebook.com',
      protocol: 'https:',
      _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: [Object] }
  },
  status: 401
}
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 09:46:47 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'AaTAWgQKrhQvtrKYOKq9_lk'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Custom template not available, using fallback hello_world for 33645545808
[WHATSAPP NOTIFICATION] API Error: {
  status: 401,
  data: {
    error: {
      message: 'Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 09:46:48 PDT.',
      type: 'OAuthException',
      code: 190,
      error_subcode: 463,
      fbtrace_id: 'A42NHTSEwWF5FWvy5O9yV8M'
    }
  },
  message: 'Request failed with status code 401'
}
[WHATSAPP NOTIFICATION] Error sending appointment confirmation: AxiosError: Request failed with status code 401
    at settle (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:2090:12)
    at BrotliDecompress.handleStreamEnd (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:3207:11)
    at BrotliDecompress.emit (node:events:536:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/axios/dist/node/axios.cjs:4317:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async WhatsAppNotificationService.sendTemplateMessage (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:322:30)
    at async WhatsAppNotificationService.sendAppointmentConfirmation (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/whatsapp/whatsapp-notification.service.js:45:17)
    at async AppointmentService.confirmAppointmentWithSlotCheck (/home/wichisof/manutencao-api.wichisoft.com.ar/dist/appointments/appointment.service.js:370:17)
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-execution-context.js:46:28
    at async /home/wichisof/nodevenv/manutencao-api.wichisoft.com.ar/20/lib/node_modules/@nestjs/core/router/router-proxy.js:9:17 {
  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 [FormData]], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      Authorization: 'Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD',
      'User-Agent': 'axios/1.11.0',
      'Content-Length': '131',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
    data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
    allowAbsoluteUrls: true
  },
  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: false,
    chunkedEncoding: false,
    shouldKeepAlive: true,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    strictContentLength: false,
    _contentLength: '131',
    _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: 'graph.facebook.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'graph.facebook.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: [TimersList],
        _idleStart: 122676363,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 39119,
        [Symbol(triggerId)]: 39117
      },
      [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: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
      'User-Agent: axios/1.11.0\r\n' +
      'Content-Length: 131\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: graph.facebook.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: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    joinDuplicateHeaders: undefined,
    path: '/v22.0/799565043241714/messages',
    _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: 'Unauthorized',
      client: [TLSSocket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      _eventsCount: 4,
      responseUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      redirects: [],
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 52,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: true,
    host: 'graph.facebook.com',
    protocol: 'https:',
    _redirectable: Writable {
      _events: [Object],
      _writableState: [WritableState],
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 131,
      _requestBodyBuffers: [],
      _eventsCount: 3,
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      [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],
      authorization: [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: 401,
    statusText: 'Unauthorized',
    headers: Object [AxiosHeaders] {
      'debug-link': 'https://www.meta.com/debug/?mid=3b61b1893bdda23cc09efe288a53acdf',
      'error-mid': '3b61b1893bdda23cc09efe288a53acdf',
      vary: 'Origin, Accept-Encoding',
      'access-control-allow-origin': '*',
      'x-fb-aed': '590',
      'cross-origin-resource-policy': 'cross-origin',
      'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}',
      'content-type': 'application/json',
      'www-authenticate': 'OAuth "Facebook Platform" "invalid_token" "Error validating access token: Session has expired on Thursday, 09-Oct-25 01:00:00 PDT. The current time is Friday, 10-Oct-25 09:46:48 PDT."',
      'strict-transport-security': 'max-age=15552000; preload',
      pragma: 'no-cache',
      'cache-control': 'no-store',
      expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
      'x-fb-request-id': 'A42NHTSEwWF5FWvy5O9yV8M',
      'x-fb-trace-id': 'F9tLo5stF0z',
      'x-fb-rev': '1028265584',
      'x-fb-debug': 'hmNBtiH1xoqWXIABfwIPzWaxPE83z2yCv62kR5ZRdQ+WUmhM4T8UOcaSBjwne8CkEwyYSsusdztVF9nitZSWIw==',
      'x-fb-server-load': '11',
      date: 'Fri, 10 Oct 2025 16:46:48 GMT',
      'proxy-status': 'http_request_error; e_fb_vipaddr="AcPM6cT-SGt1m-wMeG_gmDEKMqLl_yRauchQK0CqZpco3XO05TapPLSW9mOHC0islMDVJwIxzcI--R3ON0DPNYw10X30Uah6qZI"; e_clientaddr="AcMJ1aTkZbq8sVnhi4aCdP946bW0zynzWNj0d-CvfTjHXqNku3SH1knPiugafqPA85O1jxxXTSVVI03VicLL1TFK9U4Zj86_zUExOnDD3G-2PGJfzg"; e_upip="AcNhE7C_cPOu-Fq9m-kQdchDkw8C8YVFy2M5imlaDVyBxhLBoOquelPRekVlKPKgBbUHt9TKivWIEftAdPMkyu-P1oHomxC13KlEGo0"; e_fb_zone="AcPYV-Shqb4SoWcI5-wMZ-nWxD4J6HXfY9_rNGNw2GlDO71138DGmae5Rr7SiZRB"; e_fb_twtaskhandle="AcNgtyDfVNHZtQQ_dli_TbQr41Funz-86bqAjz7xPwMdbJLTh8vkRkwDAfIBMeyaKPxI5nCictCq4EN5QRbuCFdzAE_cizBeC2phMbk0nx8WjMI"; e_proxy="AcPg4goGv-aTTgufDuj8Kc7qv_c87pVHNbiNePfQe9v0L4VZdcWYEvlaOCTKLAnXqyITC3OVyk3uQMjFEai0", http_request_error; e_fb_vipaddr="AcM_vE4yOMN1JsBEQUvRvPX1Yb_theYyMLmpGUrYEnKGghdiXpQskB-8y1k5FO2RIcI9qeKHdz0pT1tQvrXhruKXd1ASKJM0Sl0"; e_clientaddr="AcMeJXLnQQSlTALJ7-Eaoa8ujx4cFjTiMBRMjn3mSEsp-JuDh4Q1hoG_IDCHfHrjefquBsPWvSQrYfkbGzmDSloTdomixv4RVWBxk5fGEXXDxg"; e_upip="AcO1dLo-EftcGXDgg0v1USIt_JIma-r-gp2gC4K-q0Q6QK6n5R50WvBK8NeNOylgMs5VGEs7tq3rXY59nEXul0vcfBpgV_W1bww"; e_fb_zone="AcNU0M3Ni8Cot-k1ntBjf3jWewpeNujauiZDXtfR1MdJtm5map3f9PUbfhV33A"; e_fb_twtaskhandle="AcMB2sT3w9WGO7k6Rg3U83WP4s5mxFGoMLkZMu7Vko3-YkryZgrpnkHohJPD8xXsmdGrG0yIkR0pKFiiz8Zcy_3EOMpaSEyetX5P"; e_proxy="AcMt76k01IVoVu8dpWCjN36rWhdrixLyDWmOccQcPCXuUnP8lu2BSK0jLq6q10crppna_SNPQ8GjYyk"',
      'x-fb-connection-quality': 'EXCELLENT; q=0.9, rtt=5, rtx=0, c=10, mss=1380, tbw=6253, tp=-1, tpl=-1, uplat=59, ullat=0',
      'alt-svc': 'h3=":443"; ma=86400',
      connection: 'keep-alive',
      'content-length': '203'
    },
    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: 'post',
      url: 'https://graph.facebook.com/v22.0/799565043241714/messages',
      data: '{"messaging_product":"whatsapp","to":"33645545808","type":"template","template":{"name":"hello_world","language":{"code":"en_US"}}}',
      allowAbsoluteUrls: true
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: false,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: '131',
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [TLSSocket],
      _header: 'POST /v22.0/799565043241714/messages HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'Authorization: Bearer EAAQbwy23jegBPsvQEbCuk1PczC8A7JRWVdFkZClCZCYpahaY4jmrKqJIeejn19fFIpi5otkpYkuDEmRRoSGXRt37OLGdBvZAYfP7BE9miSQjuCnhdi5cpZCZCOFiX9iYIi3cqlO4YmXi7ulTrThRJUVJFWa85a1QStZCfjzglB3XobZAfoHFM6KBtZCEvFdHlIk0aIG1SDNF058NRKptOyTQmxDF38FSfHIICGeznckvyoRMOZCZAZBDcZAiDlOJXdeGfHwZD\r\n' +
        'User-Agent: axios/1.11.0\r\n' +
        'Content-Length: 131\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: graph.facebook.com\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: '/v22.0/799565043241714/messages',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: true,
      host: 'graph.facebook.com',
      protocol: 'https:',
      _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: [Object] }
  },
  status: 401
}
