sumithemmadi / truecallerjs

TruecallerJS: This is a library for retrieving phone number details using the Truecaller API.
http://truecaller.js.org/
MIT License
523 stars 109 forks source link

Cant login #86

Open leovurchio01 opened 7 months ago

leovurchio01 commented 7 months ago

Look at the error pls ...

node:internal/process/promises:289 triggerUncaughtException(err, true / fromPromise /); ^ AxiosError: Request failed with status code 400 at settle (file:///opt/homebrew/lib/node_modules/truecallerjs/node_modules/axios/lib/core/settle.js:19:12) at Unzip.handleStreamEnd (file:///opt/homebrew/lib/node_modules/truecallerjs/node_modules/axios/lib/adapters/http.js:589:11) at Unzip.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:///opt/homebrew/lib/node_modules/truecallerjs/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async login (file:///opt/homebrew/lib/node_modules/truecallerjs/dist/login.js:78:17) at async runCLI (file:///opt/homebrew/lib/node_modules/truecallerjs/dist/cli.js:152:28) { code: 'ERR_BAD_REQUEST', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json; charset=UTF-8', 'accept-encoding': 'gzip', 'user-agent': 'Truecaller/11.75.5 (Android;10)', clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt', 'Content-Length': '393' }, method: 'post', url: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp', data: '{"countryCode":"US","dialingCode":1,"installationDetails":{"app":{"buildVersion":5,"majorVersion":11,"minorVersion":7,"store":"GOOGLE_PLAY"},"device":{"deviceId":"9ofyn13thvlzdyj0","language":"en","manufacturer":"Samsung","model":"Samsung Galaxy M31s","osName":"Android","osVersion":"10","mobileServices":["GMS"]},"language":"en"},"phoneNumber":"2085689798","region":"region-2","sequenceNo":2}' }, request: <ref 3> 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: '393', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, _header: 'POST /v2/sendOnboardingOtp HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /*\r\n' + 'Content-Type: application/json; charset=UTF-8\r\n' + 'accept-encoding: gzip\r\n' + 'user-agent: Truecaller/11.75.5 (Android;10)\r\n' + 'clientsecret: lvc22mp3l1sfv6ujg83rd17btt\r\n' + 'Content-Length: 393\r\n' + 'Host: account-asia-south1.truecaller.com\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] { 'account-asia-south1.truecaller.com:443:::::::::::::::::::::': [ TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'account-asia-south1.truecaller.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 9, connecting: false, _hadError: false, _parent: null, _host: 'account-asia-south1.truecaller.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,

        [Symbol(res)]: [TLSWrap],
        [Symbol(verified)]: true,
        [Symbol(pendingSession)]: null,
        [Symbol(async_id_symbol)]: -1,
        [Symbol(kHandle)]: [TLSWrap],
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: [Timeout],
        [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]
      }
    ]
  },
  keepAliveMsecs: 1000,
  keepAlive: true,
  maxSockets: Infinity,
  maxFreeSockets: 256,
  scheduling: 'lifo',
  maxTotalSockets: Infinity,
  totalSocketCount: 1,
  maxCachedSessions: 100,
  _sessionCache: {
    map: {
      'account-asia-south1.truecaller.com:443:::::::::::::::::::::': Buffer(1960) [Uint8Array] [
         48, 130,   7, 164,   2,   1,   1,   2,   2,   3,   4,   4,
          2,  19,   2,   4,  32,  65,  63, 249,  21, 113, 163, 227,
         69,  51, 154, 241, 213, 119, 224,  85,  51, 210, 115,  11,
        173, 189, 238, 107, 189,  48, 139,  49,  87, 252,  94,  63,
         31,   4,  48,  37,  68, 133,  64, 181, 176, 140,   1, 100,
        100, 251,  85,  39,  96, 233, 229, 194,  73, 102,  67, 150,
        246,  21,  68,  44,  91, 175, 215, 183, 197,  34, 152,  29,
         53, 218, 162,  62, 104, 230, 134, 201, 254,  58, 169,  80,
        107,  98,  58, 161,
        ... 1860 more items
      ]
    },
    list: [
      'account-asia-south1.truecaller.com:443:::::::::::::::::::::'
    ]
  },
  [Symbol(shapeMode)]: false,
  [Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/v2/sendOnboardingOtp',
_ended: true,
res: IncomingMessage {
  _events: {
    close: [
      [Function (anonymous)],
      [Function: onclose],
      [Function: onclose]
    ],
    error: [
      [Function: onerror],
      [Function: onError],
      [Function: onerror]
    ],
    data: undefined,
    end: [
      [Function: responseOnEnd],
      [Function: onend],
      [Function: onend]
    ],
    readable: undefined,
    finish: [ [Function: onfinish], [Function: onfinish] ]
  },
  _readableState: ReadableState {
    highWaterMark: 16384,
    buffer: [],
    bufferIndex: 0,
    length: 0,
    pipes: [],
    awaitDrainWriters: null,
    [Symbol(kState)]: 110626684
  },
  _maxListeners: undefined,
  socket: null,
  httpVersionMajor: 1,
  httpVersionMinor: 1,
  httpVersion: '1.1',
  complete: true,
  rawHeaders: [
    'vary',
    'Accept-Encoding',
    'content-encoding',
    'gzip',
    'date',
    'Sun, 31 Mar 2024 05:33:12 GMT',
    'content-type',
    'application/json',
    'x-envoy-upstream-service-time',
    '12',
    'server',
    'istio-envoy',
    'Via',
    '1.1 google',
    'Alt-Svc',
    'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
    'Transfer-Encoding',
    'chunked'
  ],
  rawTrailers: [],
  joinDuplicateHeaders: undefined,
  aborted: false,
  upgrade: false,
  url: '',
  method: null,
  statusCode: 400,
  statusMessage: 'Bad Request',
  client: <ref *1> TLSSocket {
    _tlsOptions: {
      allowHalfOpen: undefined,
      pipe: false,
      secureContext: SecureContext { context: SecureContext {} },
      isServer: false,
      requestCert: true,
      rejectUnauthorized: true,
      session: undefined,
      ALPNProtocols: undefined,
      requestOCSP: undefined,
      enableTrace: undefined,
      pskCallback: undefined,
      highWaterMark: undefined,
      onread: undefined,
      signal: undefined
    },
    _secureEstablished: true,
    _securePending: false,
    _newSessionPending: false,
    _controlReleased: true,
    secureConnecting: false,
    _SNICallback: null,
    servername: 'account-asia-south1.truecaller.com',
    alpnProtocol: false,
    authorized: true,
    authorizationError: null,
    encrypted: true,
    _events: [Object: null prototype] {
      close: [
        [Function: onSocketCloseDestroySSL],
        [Function],
        [Function: onClose]
      ],
      end: [Function: onReadableStreamEnd],
      error: [Function: bound onceWrapper] {
        listener: [Function: freeSocketErrorListener]
      },
      newListener: [Function: keylogNewListener],
      connect: undefined,
      secure: [Function: onConnectSecure],
      session: [Function (anonymous)],
      free: [Function: onFree],
      timeout: [Function: onTimeout],
      agentRemove: [Function: onRemove],
      data: undefined,
      drain: undefined
    },
    _eventsCount: 9,
    connecting: false,
    _hadError: false,
    _parent: null,
    _host: 'account-asia-south1.truecaller.com',
    _closeAfterHandlingError: false,
    _readableState: ReadableState {
      highWaterMark: 16384,
      buffer: [],
      bufferIndex: 0,
      length: 0,
      pipes: [],
      awaitDrainWriters: null,
      [Symbol(kState)]: 60303620
    },
    _writableState: WritableState {
      highWaterMark: 16384,
      length: 0,
      corked: 0,
      onwrite: [Function: bound onwrite],
      writelen: 0,
      bufferedIndex: 0,
      pendingcb: 0,
      [Symbol(kState)]: 17563908,
      [Symbol(kBufferedValue)]: null,
      [Symbol(kWriteCbValue)]: [Function (anonymous)]
    },
    allowHalfOpen: false,
    _maxListeners: undefined,
    _sockname: null,
    _pendingData: null,
    _pendingEncoding: '',
    server: undefined,
    _server: null,
    ssl: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    _requestCert: true,
    _rejectUnauthorized: true,
    timeout: 5000,
    parser: null,
    _httpMessage: null,
    [Symbol(alpncallback)]: null,
    [Symbol(res)]: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    [Symbol(verified)]: true,
    [Symbol(pendingSession)]: null,
    [Symbol(async_id_symbol)]: -1,
    [Symbol(kHandle)]: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: <ref *2> Timeout {
      _idleTimeout: 5000,
      _idlePrev: TimersList {
        _idleNext: [Circular *2],
        _idlePrev: [Circular *2],
        expiry: 20722,
        id: -9007199254740987,
        msecs: 5000,
        priorityQueuePosition: 1
      },
      _idleNext: TimersList {
        _idleNext: [Circular *2],
        _idlePrev: [Circular *2],
        expiry: 20722,
        id: -9007199254740987,
        msecs: 5000,
        priorityQueuePosition: 1
      },
      _idleStart: 16251,
      _onTimeout: [Function: bound ],
      _timerArgs: undefined,
      _repeat: null,
      _destroyed: false,
      [Symbol(refed)]: false,
      [Symbol(kHasPrimitive)]: false,
      [Symbol(asyncId)]: 662,
      [Symbol(triggerId)]: 660
    },
    [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)]: {
      rejectUnauthorized: true,
      ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
      checkServerIdentity: [Function: checkServerIdentity],
      minDHSize: 1024,
      maxRedirects: 21,
      maxBodyLength: Infinity,
      protocol: 'https:',
      path: null,
      method: 'POST',
      headers: [Object: null prototype] {
        Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json; charset=UTF-8',
        'accept-encoding': 'gzip',
        'user-agent': 'Truecaller/11.75.5 (Android;10)',
        clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
        'Content-Length': '393'
      },
      agents: { http: undefined, https: undefined },
      auth: undefined,
      family: undefined,
      beforeRedirect: [Function: dispatchBeforeRedirect],
      beforeRedirects: { proxy: [Function: beforeRedirect] },
      hostname: 'account-asia-south1.truecaller.com',
      port: 443,
      agent: undefined,
      nativeProtocols: { 'http:': [Object], 'https:': [Object] },
      pathname: '/v2/sendOnboardingOtp',
      _defaultAgent: 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
      },
      host: 'account-asia-south1.truecaller.com',
      keepAlive: true,
      scheduling: 'lifo',
      timeout: 5000,
      noDelay: true,
      servername: 'account-asia-south1.truecaller.com',
      _agentKey: 'account-asia-south1.truecaller.com:443:::::::::::::::::::::',
      encoding: null,
      keepAliveInitialDelay: 1000
    }
  },
  _consuming: true,
  _dumped: false,
  req: [Circular *3],
  _eventsCount: 4,
  responseUrl: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
  redirects: [],
  [Symbol(shapeMode)]: true,
  [Symbol(kCapture)]: false,
  [Symbol(kHeaders)]: {
    vary: 'Accept-Encoding',
    date: 'Sun, 31 Mar 2024 05:33:12 GMT',
    'content-type': 'application/json',
    'x-envoy-upstream-service-time': '12',
    server: 'istio-envoy',
    via: '1.1 google',
    'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
    'transfer-encoding': 'chunked'
  },
  [Symbol(kHeadersCount)]: 18,
  [Symbol(kTrailers)]: null,
  [Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'account-asia-south1.truecaller.com',
protocol: 'https:',
_redirectable: Writable {
  _events: {
    close: undefined,
    error: [Function: handleRequestError],
    prefinish: undefined,
    finish: undefined,
    drain: undefined,
    response: [Function: handleResponse],
    socket: [Function: handleRequestSocket]
  },
  _writableState: WritableState {
    highWaterMark: 16384,
    length: 0,
    corked: 0,
    onwrite: [Function: bound onwrite],
    writelen: 0,
    bufferedIndex: 0,
    pendingcb: 0,
    [Symbol(kState)]: 17580812,
    [Symbol(kBufferedValue)]: null
  },
  _maxListeners: undefined,
  _options: {
    maxRedirects: 21,
    maxBodyLength: Infinity,
    protocol: 'https:',
    path: '/v2/sendOnboardingOtp',
    method: 'POST',
    headers: [Object: null prototype] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json; charset=UTF-8',
      'accept-encoding': 'gzip',
      'user-agent': 'Truecaller/11.75.5 (Android;10)',
      clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
      'Content-Length': '393'
    },
    agents: { http: undefined, https: undefined },
    auth: undefined,
    family: undefined,
    beforeRedirect: [Function: dispatchBeforeRedirect],
    beforeRedirects: { proxy: [Function: beforeRedirect] },
    hostname: 'account-asia-south1.truecaller.com',
    port: '',
    agent: undefined,
    nativeProtocols: {
      'http:': {
        _connectionListener: [Function: connectionListener],
        METHODS: [Array],
        STATUS_CODES: [Object],
        Agent: [Function],
        ClientRequest: [Function: ClientRequest],
        IncomingMessage: [Function: IncomingMessage],
        OutgoingMessage: [Function: OutgoingMessage],
        Server: [Function: Server],
        ServerResponse: [Function: ServerResponse],
        createServer: [Function: createServer],
        validateHeaderName: [Function],
        validateHeaderValue: [Function],
        get: [Function: get],
        request: [Function: request],
        setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
        maxHeaderSize: [Getter],
        globalAgent: [Getter/Setter]
      },
      'https:': {
        Agent: [Function: Agent],
        globalAgent: [Agent],
        Server: [Function: Server],
        createServer: [Function: createServer],
        get: [Function: get],
        request: [Function: request]
      }
    },
    pathname: '/v2/sendOnboardingOtp'
  },
  _ended: true,
  _ending: true,
  _redirectCount: 0,
  _redirects: [],
  _requestBodyLength: 393,
  _requestBodyBuffers: [],
  _eventsCount: 3,
  _onNativeResponse: [Function (anonymous)],
  _currentRequest: [Circular *3],
  _currentUrl: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
  [Symbol(shapeMode)]: true,
  [Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: <ref *1> TLSSocket {
  _tlsOptions: {
    allowHalfOpen: undefined,
    pipe: false,
    secureContext: SecureContext { context: SecureContext {} },
    isServer: false,
    requestCert: true,
    rejectUnauthorized: true,
    session: undefined,
    ALPNProtocols: undefined,
    requestOCSP: undefined,
    enableTrace: undefined,
    pskCallback: undefined,
    highWaterMark: undefined,
    onread: undefined,
    signal: undefined
  },
  _secureEstablished: true,
  _securePending: false,
  _newSessionPending: false,
  _controlReleased: true,
  secureConnecting: false,
  _SNICallback: null,
  servername: 'account-asia-south1.truecaller.com',
  alpnProtocol: false,
  authorized: true,
  authorizationError: null,
  encrypted: true,
  _events: [Object: null prototype] {
    close: [
      [Function: onSocketCloseDestroySSL],
      [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      [Function: onClose]
    ],
    end: [Function: onReadableStreamEnd],
    error: [Function: bound onceWrapper] {
      listener: [Function: freeSocketErrorListener]
    },
    newListener: [Function: keylogNewListener],
    connect: undefined,
    secure: [Function: onConnectSecure],
    session: [Function (anonymous)],
    free: [Function: onFree],
    timeout: [Function: onTimeout],
    agentRemove: [Function: onRemove],
    data: undefined,
    drain: undefined
  },
  _eventsCount: 9,
  connecting: false,
  _hadError: false,
  _parent: null,
  _host: 'account-asia-south1.truecaller.com',
  _closeAfterHandlingError: false,
  _readableState: ReadableState {
    highWaterMark: 16384,
    buffer: [],
    bufferIndex: 0,
    length: 0,
    pipes: [],
    awaitDrainWriters: null,
    [Symbol(kState)]: 60303620
  },
  _writableState: WritableState {
    highWaterMark: 16384,
    length: 0,
    corked: 0,
    onwrite: [Function: bound onwrite],
    writelen: 0,
    bufferedIndex: 0,
    pendingcb: 0,
    [Symbol(kState)]: 17563908,
    [Symbol(kBufferedValue)]: null,
    [Symbol(kWriteCbValue)]: [Function (anonymous)]
  },
  allowHalfOpen: false,
  _maxListeners: undefined,
  _sockname: null,
  _pendingData: null,
  _pendingEncoding: '',
  server: undefined,
  _server: null,
  ssl: TLSWrap {
    _parent: TCP {
      reading: [Getter/Setter],
      onconnection: null,
      [Symbol(owner_symbol)]: [Circular *1]
    },
    _parentWrap: null,
    _secureContext: SecureContext { context: SecureContext {} },
    reading: true,
    onkeylog: [Function: onkeylog],
    onhandshakestart: {},
    onhandshakedone: [Function (anonymous)],
    onocspresponse: [Function: onocspresponse],
    onnewsession: [Function: onnewsessionclient],
    onerror: [Function: onerror],
    [Symbol(owner_symbol)]: [Circular *1]
  },
  _requestCert: true,
  _rejectUnauthorized: true,
  timeout: 5000,
  parser: null,
  _httpMessage: null,
  [Symbol(alpncallback)]: null,
  [Symbol(res)]: TLSWrap {
    _parent: TCP {
      reading: [Getter/Setter],
      onconnection: null,
      [Symbol(owner_symbol)]: [Circular *1]
    },
    _parentWrap: null,
    _secureContext: SecureContext { context: SecureContext {} },
    reading: true,
    onkeylog: [Function: onkeylog],
    onhandshakestart: {},
    onhandshakedone: [Function (anonymous)],
    onocspresponse: [Function: onocspresponse],
    onnewsession: [Function: onnewsessionclient],
    onerror: [Function: onerror],
    [Symbol(owner_symbol)]: [Circular *1]
  },
  [Symbol(verified)]: true,
  [Symbol(pendingSession)]: null,
  [Symbol(async_id_symbol)]: -1,
  [Symbol(kHandle)]: TLSWrap {
    _parent: TCP {
      reading: [Getter/Setter],
      onconnection: null,
      [Symbol(owner_symbol)]: [Circular *1]
    },
    _parentWrap: null,
    _secureContext: SecureContext { context: SecureContext {} },
    reading: true,
    onkeylog: [Function: onkeylog],
    onhandshakestart: {},
    onhandshakedone: [Function (anonymous)],
    onocspresponse: [Function: onocspresponse],
    onnewsession: [Function: onnewsessionclient],
    onerror: [Function: onerror],
    [Symbol(owner_symbol)]: [Circular *1]
  },
  [Symbol(lastWriteQueueSize)]: 0,
  [Symbol(timeout)]: <ref *2> Timeout {
    _idleTimeout: 5000,
    _idlePrev: TimersList {
      _idleNext: [Circular *2],
      _idlePrev: [Circular *2],
      expiry: 20722,
      id: -9007199254740987,
      msecs: 5000,
      priorityQueuePosition: 1
    },
    _idleNext: TimersList {
      _idleNext: [Circular *2],
      _idlePrev: [Circular *2],
      expiry: 20722,
      id: -9007199254740987,
      msecs: 5000,
      priorityQueuePosition: 1
    },
    _idleStart: 16251,
    _onTimeout: [Function: bound ],
    _timerArgs: undefined,
    _repeat: null,
    _destroyed: false,
    [Symbol(refed)]: false,
    [Symbol(kHasPrimitive)]: false,
    [Symbol(asyncId)]: 662,
    [Symbol(triggerId)]: 660
  },
  [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)]: {
    rejectUnauthorized: true,
    ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
    checkServerIdentity: [Function: checkServerIdentity],
    minDHSize: 1024,
    maxRedirects: 21,
    maxBodyLength: Infinity,
    protocol: 'https:',
    path: null,
    method: 'POST',
    headers: [Object: null prototype] {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json; charset=UTF-8',
      'accept-encoding': 'gzip',
      'user-agent': 'Truecaller/11.75.5 (Android;10)',
      clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
      'Content-Length': '393'
    },
    agents: { http: undefined, https: undefined },
    auth: undefined,
    family: undefined,
    beforeRedirect: [Function: dispatchBeforeRedirect],
    beforeRedirects: { proxy: [Function: beforeRedirect] },
    hostname: 'account-asia-south1.truecaller.com',
    port: 443,
    agent: undefined,
    nativeProtocols: {
      'http:': {
        _connectionListener: [Function: connectionListener],
        METHODS: [Array],
        STATUS_CODES: [Object],
        Agent: [Function],
        ClientRequest: [Function: ClientRequest],
        IncomingMessage: [Function: IncomingMessage],
        OutgoingMessage: [Function: OutgoingMessage],
        Server: [Function: Server],
        ServerResponse: [Function: ServerResponse],
        createServer: [Function: createServer],
        validateHeaderName: [Function],
        validateHeaderValue: [Function],
        get: [Function: get],
        request: [Function: request],
        setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
        maxHeaderSize: [Getter],
        globalAgent: [Getter/Setter]
      },
      'https:': {
        Agent: [Function: Agent],
        globalAgent: [Agent],
        Server: [Function: Server],
        createServer: [Function: createServer],
        get: [Function: get],
        request: [Function: request]
      }
    },
    pathname: '/v2/sendOnboardingOtp',
    _defaultAgent: Agent {
      _events: [Object: null prototype] {
        free: [Function (anonymous)],
        newListener: [Function: maybeEnableKeylog]
      },
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype] {
        keepAlive: true,
        scheduling: 'lifo',
        timeout: 5000,
        noDelay: true,
        path: null
      },
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {},
      freeSockets: [Object: null prototype] {
        'account-asia-south1.truecaller.com:443:::::::::::::::::::::': [Array]
      },
      keepAliveMsecs: 1000,
      keepAlive: true,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: { map: [Object], list: [Array] },
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false
    },
    host: 'account-asia-south1.truecaller.com',
    keepAlive: true,
    scheduling: 'lifo',
    timeout: 5000,
    noDelay: true,
    servername: 'account-asia-south1.truecaller.com',
    _agentKey: 'account-asia-south1.truecaller.com:443:::::::::::::::::::::',
    encoding: null,
    keepAliveInitialDelay: 1000
  }
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
  accept: [ 'Accept', 'application/json, text/plain, */*' ],
  'content-type': [ 'Content-Type', 'application/json; charset=UTF-8' ],
  'accept-encoding': [ 'accept-encoding', 'gzip' ],
  'user-agent': [ 'user-agent', 'Truecaller/11.75.5 (Android;10)' ],
  clientsecret: [ 'clientsecret', 'lvc22mp3l1sfv6ujg83rd17btt' ],
  'content-length': [ 'Content-Length', '393' ],
  host: [ 'Host', 'account-asia-south1.truecaller.com' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null

}, response: { status: 400, statusText: 'Bad Request', headers: Object [AxiosHeaders] { vary: 'Accept-Encoding', date: 'Sun, 31 Mar 2024 05:33:12 GMT', 'content-type': 'application/json', 'x-envoy-upstream-service-time': '12', server: 'istio-envoy', via: '1.1 google', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'transfer-encoding': 'chunked' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json; charset=UTF-8', 'accept-encoding': 'gzip', 'user-agent': 'Truecaller/11.75.5 (Android;10)', clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt', 'Content-Length': '393' }, method: 'post', url: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp', data: '{"countryCode":"US","dialingCode":1,"installationDetails":{"app":{"buildVersion":5,"majorVersion":11,"minorVersion":7,"store":"GOOGLE_PLAY"},"device":{"deviceId":"9ofyn13thvlzdyj0","language":"en","manufacturer":"Samsung","model":"Samsung Galaxy M31s","osName":"Android","osVersion":"10","mobileServices":["GMS"]},"language":"en"},"phoneNumber":"2085689798","region":"region-2","sequenceNo":2}' }, request: <ref 3> 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: '393', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, _header: 'POST /v2/sendOnboardingOtp HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /*\r\n' + 'Content-Type: application/json; charset=UTF-8\r\n' + 'accept-encoding: gzip\r\n' + 'user-agent: Truecaller/11.75.5 (Android;10)\r\n' + 'clientsecret: lvc22mp3l1sfv6ujg83rd17btt\r\n' + 'Content-Length: 393\r\n' + 'Host: account-asia-south1.truecaller.com\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] { 'account-asia-south1.truecaller.com:443:::::::::::::::::::::': [ [TLSSocket] ] }, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, maxCachedSessions: 100, _sessionCache: { map: { 'account-asia-south1.truecaller.com:443:::::::::::::::::::::': [Buffer [Uint8Array]] }, list: [ 'account-asia-south1.truecaller.com:443:::::::::::::::::::::' ] },

    [Symbol(kCapture)]: false
  },
  socketPath: undefined,
  method: 'POST',
  maxHeaderSize: undefined,
  insecureHTTPParser: undefined,
  joinDuplicateHeaders: undefined,
  path: '/v2/sendOnboardingOtp',
  _ended: true,
  res: IncomingMessage {
    _events: {
      close: [
        [Function (anonymous)],
        [Function: onclose],
        [Function: onclose]
      ],
      error: [
        [Function: onerror],
        [Function: onError],
        [Function: onerror]
      ],
      data: undefined,
      end: [
        [Function: responseOnEnd],
        [Function: onend],
        [Function: onend]
      ],
      readable: undefined,
      finish: [ [Function: onfinish], [Function: onfinish] ]
    },
    _readableState: ReadableState {
      highWaterMark: 16384,
      buffer: [],
      bufferIndex: 0,
      length: 0,
      pipes: [],
      awaitDrainWriters: null,
      [Symbol(kState)]: 110626684
    },
    _maxListeners: undefined,
    socket: null,
    httpVersionMajor: 1,
    httpVersionMinor: 1,
    httpVersion: '1.1',
    complete: true,
    rawHeaders: [
      'vary',
      'Accept-Encoding',
      'content-encoding',
      'gzip',
      'date',
      'Sun, 31 Mar 2024 05:33:12 GMT',
      'content-type',
      'application/json',
      'x-envoy-upstream-service-time',
      '12',
      'server',
      'istio-envoy',
      'Via',
      '1.1 google',
      'Alt-Svc',
      'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
      'Transfer-Encoding',
      'chunked'
    ],
    rawTrailers: [],
    joinDuplicateHeaders: undefined,
    aborted: false,
    upgrade: false,
    url: '',
    method: null,
    statusCode: 400,
    statusMessage: 'Bad Request',
    client: <ref *1> TLSSocket {
      _tlsOptions: {
        allowHalfOpen: undefined,
        pipe: false,
        secureContext: [SecureContext],
        isServer: false,
        requestCert: true,
        rejectUnauthorized: true,
        session: undefined,
        ALPNProtocols: undefined,
        requestOCSP: undefined,
        enableTrace: undefined,
        pskCallback: undefined,
        highWaterMark: undefined,
        onread: undefined,
        signal: undefined
      },
      _secureEstablished: true,
      _securePending: false,
      _newSessionPending: false,
      _controlReleased: true,
      secureConnecting: false,
      _SNICallback: null,
      servername: 'account-asia-south1.truecaller.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype] {
        close: [Array],
        end: [Function: onReadableStreamEnd],
        error: [Function],
        newListener: [Function: keylogNewListener],
        connect: undefined,
        secure: [Function: onConnectSecure],
        session: [Function (anonymous)],
        free: [Function: onFree],
        timeout: [Function: onTimeout],
        agentRemove: [Function: onRemove],
        data: undefined,
        drain: undefined
      },
      _eventsCount: 9,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'account-asia-south1.truecaller.com',
      _closeAfterHandlingError: false,
      _readableState: ReadableState {
        highWaterMark: 16384,
        buffer: [],
        bufferIndex: 0,
        length: 0,
        pipes: [],
        awaitDrainWriters: null,
        [Symbol(kState)]: 60303620
      },
      _writableState: WritableState {
        highWaterMark: 16384,
        length: 0,
        corked: 0,
        onwrite: [Function: bound onwrite],
        writelen: 0,
        bufferedIndex: 0,
        pendingcb: 0,
        [Symbol(kState)]: 17563908,
        [Symbol(kBufferedValue)]: null,
        [Symbol(kWriteCbValue)]: [Function (anonymous)]
      },
      allowHalfOpen: false,
      _maxListeners: undefined,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: undefined,
      _server: null,
      ssl: TLSWrap {
        _parent: [TCP],
        _parentWrap: null,
        _secureContext: [SecureContext],
        reading: true,
        onkeylog: [Function: onkeylog],
        onhandshakestart: {},
        onhandshakedone: [Function (anonymous)],
        onocspresponse: [Function: onocspresponse],
        onnewsession: [Function: onnewsessionclient],
        onerror: [Function: onerror],
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _requestCert: true,
      _rejectUnauthorized: true,
      timeout: 5000,
      parser: null,
      _httpMessage: null,
      [Symbol(alpncallback)]: null,
      [Symbol(res)]: TLSWrap {
        _parent: [TCP],
        _parentWrap: null,
        _secureContext: [SecureContext],
        reading: true,
        onkeylog: [Function: onkeylog],
        onhandshakestart: {},
        onhandshakedone: [Function (anonymous)],
        onocspresponse: [Function: onocspresponse],
        onnewsession: [Function: onnewsessionclient],
        onerror: [Function: onerror],
        [Symbol(owner_symbol)]: [Circular *1]
      },
      [Symbol(verified)]: true,
      [Symbol(pendingSession)]: null,
      [Symbol(async_id_symbol)]: -1,
      [Symbol(kHandle)]: TLSWrap {
        _parent: [TCP],
        _parentWrap: null,
        _secureContext: [SecureContext],
        reading: true,
        onkeylog: [Function: onkeylog],
        onhandshakestart: {},
        onhandshakedone: [Function (anonymous)],
        onocspresponse: [Function: onocspresponse],
        onnewsession: [Function: onnewsessionclient],
        onerror: [Function: onerror],
        [Symbol(owner_symbol)]: [Circular *1]
      },
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: <ref *2> Timeout {
        _idleTimeout: 5000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 16251,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 662,
        [Symbol(triggerId)]: 660
      },
      [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)]: {
        rejectUnauthorized: true,
        ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
        checkServerIdentity: [Function: checkServerIdentity],
        minDHSize: 1024,
        maxRedirects: 21,
        maxBodyLength: Infinity,
        protocol: 'https:',
        path: null,
        method: 'POST',
        headers: [Object: null prototype],
        agents: [Object],
        auth: undefined,
        family: undefined,
        beforeRedirect: [Function: dispatchBeforeRedirect],
        beforeRedirects: [Object],
        hostname: 'account-asia-south1.truecaller.com',
        port: 443,
        agent: undefined,
        nativeProtocols: [Object],
        pathname: '/v2/sendOnboardingOtp',
        _defaultAgent: [Agent],
        host: 'account-asia-south1.truecaller.com',
        keepAlive: true,
        scheduling: 'lifo',
        timeout: 5000,
        noDelay: true,
        servername: 'account-asia-south1.truecaller.com',
        _agentKey: 'account-asia-south1.truecaller.com:443:::::::::::::::::::::',
        encoding: null,
        keepAliveInitialDelay: 1000
      }
    },
    _consuming: true,
    _dumped: false,
    req: [Circular *3],
    _eventsCount: 4,
    responseUrl: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
    redirects: [],
    [Symbol(shapeMode)]: true,
    [Symbol(kCapture)]: false,
    [Symbol(kHeaders)]: {
      vary: 'Accept-Encoding',
      date: 'Sun, 31 Mar 2024 05:33:12 GMT',
      'content-type': 'application/json',
      'x-envoy-upstream-service-time': '12',
      server: 'istio-envoy',
      via: '1.1 google',
      'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
      'transfer-encoding': 'chunked'
    },
    [Symbol(kHeadersCount)]: 18,
    [Symbol(kTrailers)]: null,
    [Symbol(kTrailersCount)]: 0
  },
  aborted: false,
  timeoutCb: null,
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  host: 'account-asia-south1.truecaller.com',
  protocol: 'https:',
  _redirectable: Writable {
    _events: {
      close: undefined,
      error: [Function: handleRequestError],
      prefinish: undefined,
      finish: undefined,
      drain: undefined,
      response: [Function: handleResponse],
      socket: [Function: handleRequestSocket]
    },
    _writableState: WritableState {
      highWaterMark: 16384,
      length: 0,
      corked: 0,
      onwrite: [Function: bound onwrite],
      writelen: 0,
      bufferedIndex: 0,
      pendingcb: 0,
      [Symbol(kState)]: 17580812,
      [Symbol(kBufferedValue)]: null
    },
    _maxListeners: undefined,
    _options: {
      maxRedirects: 21,
      maxBodyLength: Infinity,
      protocol: 'https:',
      path: '/v2/sendOnboardingOtp',
      method: 'POST',
      headers: [Object: null prototype] {
        Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json; charset=UTF-8',
        'accept-encoding': 'gzip',
        'user-agent': 'Truecaller/11.75.5 (Android;10)',
        clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
        'Content-Length': '393'
      },
      agents: { http: undefined, https: undefined },
      auth: undefined,
      family: undefined,
      beforeRedirect: [Function: dispatchBeforeRedirect],
      beforeRedirects: { proxy: [Function: beforeRedirect] },
      hostname: 'account-asia-south1.truecaller.com',
      port: '',
      agent: undefined,
      nativeProtocols: { 'http:': [Object], 'https:': [Object] },
      pathname: '/v2/sendOnboardingOtp'
    },
    _ended: true,
    _ending: true,
    _redirectCount: 0,
    _redirects: [],
    _requestBodyLength: 393,
    _requestBodyBuffers: [],
    _eventsCount: 3,
    _onNativeResponse: [Function (anonymous)],
    _currentRequest: [Circular *3],
    _currentUrl: 'https://account-asia-south1.truecaller.com/v2/sendOnboardingOtp',
    [Symbol(shapeMode)]: true,
    [Symbol(kCapture)]: false
  },
  [Symbol(shapeMode)]: false,
  [Symbol(kCapture)]: false,
  [Symbol(kBytesWritten)]: 0,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kChunkedBuffer)]: [],
  [Symbol(kChunkedLength)]: 0,
  [Symbol(kSocket)]: <ref *1> TLSSocket {
    _tlsOptions: {
      allowHalfOpen: undefined,
      pipe: false,
      secureContext: SecureContext { context: SecureContext {} },
      isServer: false,
      requestCert: true,
      rejectUnauthorized: true,
      session: undefined,
      ALPNProtocols: undefined,
      requestOCSP: undefined,
      enableTrace: undefined,
      pskCallback: undefined,
      highWaterMark: undefined,
      onread: undefined,
      signal: undefined
    },
    _secureEstablished: true,
    _securePending: false,
    _newSessionPending: false,
    _controlReleased: true,
    secureConnecting: false,
    _SNICallback: null,
    servername: 'account-asia-south1.truecaller.com',
    alpnProtocol: false,
    authorized: true,
    authorizationError: null,
    encrypted: true,
    _events: [Object: null prototype] {
      close: [
        [Function: onSocketCloseDestroySSL],
        [Function],
        [Function: onClose]
      ],
      end: [Function: onReadableStreamEnd],
      error: [Function: bound onceWrapper] {
        listener: [Function: freeSocketErrorListener]
      },
      newListener: [Function: keylogNewListener],
      connect: undefined,
      secure: [Function: onConnectSecure],
      session: [Function (anonymous)],
      free: [Function: onFree],
      timeout: [Function: onTimeout],
      agentRemove: [Function: onRemove],
      data: undefined,
      drain: undefined
    },
    _eventsCount: 9,
    connecting: false,
    _hadError: false,
    _parent: null,
    _host: 'account-asia-south1.truecaller.com',
    _closeAfterHandlingError: false,
    _readableState: ReadableState {
      highWaterMark: 16384,
      buffer: [],
      bufferIndex: 0,
      length: 0,
      pipes: [],
      awaitDrainWriters: null,
      [Symbol(kState)]: 60303620
    },
    _writableState: WritableState {
      highWaterMark: 16384,
      length: 0,
      corked: 0,
      onwrite: [Function: bound onwrite],
      writelen: 0,
      bufferedIndex: 0,
      pendingcb: 0,
      [Symbol(kState)]: 17563908,
      [Symbol(kBufferedValue)]: null,
      [Symbol(kWriteCbValue)]: [Function (anonymous)]
    },
    allowHalfOpen: false,
    _maxListeners: undefined,
    _sockname: null,
    _pendingData: null,
    _pendingEncoding: '',
    server: undefined,
    _server: null,
    ssl: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    _requestCert: true,
    _rejectUnauthorized: true,
    timeout: 5000,
    parser: null,
    _httpMessage: null,
    [Symbol(alpncallback)]: null,
    [Symbol(res)]: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    [Symbol(verified)]: true,
    [Symbol(pendingSession)]: null,
    [Symbol(async_id_symbol)]: -1,
    [Symbol(kHandle)]: TLSWrap {
      _parent: TCP {
        reading: [Getter/Setter],
        onconnection: null,
        [Symbol(owner_symbol)]: [Circular *1]
      },
      _parentWrap: null,
      _secureContext: SecureContext { context: SecureContext {} },
      reading: true,
      onkeylog: [Function: onkeylog],
      onhandshakestart: {},
      onhandshakedone: [Function (anonymous)],
      onocspresponse: [Function: onocspresponse],
      onnewsession: [Function: onnewsessionclient],
      onerror: [Function: onerror],
      [Symbol(owner_symbol)]: [Circular *1]
    },
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: <ref *2> Timeout {
      _idleTimeout: 5000,
      _idlePrev: TimersList {
        _idleNext: [Circular *2],
        _idlePrev: [Circular *2],
        expiry: 20722,
        id: -9007199254740987,
        msecs: 5000,
        priorityQueuePosition: 1
      },
      _idleNext: TimersList {
        _idleNext: [Circular *2],
        _idlePrev: [Circular *2],
        expiry: 20722,
        id: -9007199254740987,
        msecs: 5000,
        priorityQueuePosition: 1
      },
      _idleStart: 16251,
      _onTimeout: [Function: bound ],
      _timerArgs: undefined,
      _repeat: null,
      _destroyed: false,
      [Symbol(refed)]: false,
      [Symbol(kHasPrimitive)]: false,
      [Symbol(asyncId)]: 662,
      [Symbol(triggerId)]: 660
    },
    [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)]: {
      rejectUnauthorized: true,
      ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
      checkServerIdentity: [Function: checkServerIdentity],
      minDHSize: 1024,
      maxRedirects: 21,
      maxBodyLength: Infinity,
      protocol: 'https:',
      path: null,
      method: 'POST',
      headers: [Object: null prototype] {
        Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json; charset=UTF-8',
        'accept-encoding': 'gzip',
        'user-agent': 'Truecaller/11.75.5 (Android;10)',
        clientsecret: 'lvc22mp3l1sfv6ujg83rd17btt',
        'Content-Length': '393'
      },
      agents: { http: undefined, https: undefined },
      auth: undefined,
      family: undefined,
      beforeRedirect: [Function: dispatchBeforeRedirect],
      beforeRedirects: { proxy: [Function: beforeRedirect] },
      hostname: 'account-asia-south1.truecaller.com',
      port: 443,
      agent: undefined,
      nativeProtocols: { 'http:': [Object], 'https:': [Object] },
      pathname: '/v2/sendOnboardingOtp',
      _defaultAgent: 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
      },
      host: 'account-asia-south1.truecaller.com',
      keepAlive: true,
      scheduling: 'lifo',
      timeout: 5000,
      noDelay: true,
      servername: 'account-asia-south1.truecaller.com',
      _agentKey: 'account-asia-south1.truecaller.com:443:::::::::::::::::::::',
      encoding: null,
      keepAliveInitialDelay: 1000
    }
  },
  [Symbol(kOutHeaders)]: [Object: null prototype] {
    accept: [ 'Accept', 'application/json, text/plain, */*' ],
    'content-type': [ 'Content-Type', 'application/json; charset=UTF-8' ],
    'accept-encoding': [ 'accept-encoding', 'gzip' ],
    'user-agent': [ 'user-agent', 'Truecaller/11.75.5 (Android;10)' ],
    clientsecret: [ 'clientsecret', 'lvc22mp3l1sfv6ujg83rd17btt' ],
    'content-length': [ 'Content-Length', '393' ],
    host: [ 'Host', 'account-asia-south1.truecaller.com' ]
  },
  [Symbol(errored)]: null,
  [Symbol(kHighWaterMark)]: 16384,
  [Symbol(kRejectNonStandardBodyWrites)]: false,
  [Symbol(kUniqueHeaders)]: null
},
data: { status: 40003, message: 'Invalid phone number' }

} }

Node.js v21.7.1

moizzhere-git commented 2 months ago

Yes! I have this same error. How to fix it?

haram-a commented 1 month ago

I also have the same issue how to solve it

haram-a commented 1 month ago

kindly guide about this issue it is very irritating

hamzamagsi commented 1 month ago

anybody got solution upon this issue ?