Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
14 kB
3
Indexable
Never
Error on predictPhoneCorrectnessBulk AxiosError: Request failed with status code 400
    at settle (file:///Users/vladpotra/code/Sterling-Strategies/server/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///Users/vladpotra/code/Sterling-Strategies/server/node_modules/axios/lib/adapters/http.js:512:11)
    at IncomingMessage.emit (node:events:525:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ERR_BAD_REQUEST',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 600000,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: null },
    validateStatus: [Function: validateStatus],
    headers: AxiosHeaders {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'application/json',
      'User-Agent': 'axios/1.2.2',
      'Content-Length': '2025',
      'Accept-Encoding': 'gzip, compress, deflate, br'
    },
    method: 'post',
    url: 'https://api.akkio.com/v1/models',
    data: '{"api_key":"70f8ade0-1712-495b-a337-f2f181456f0a","data":[{"ID":0,"firstName":"adam","lastName":"judelson","address":"5349 Shirley Avenue","city":"Tarzana","state":"CA","zipCode":"91356","A1Email":"ADAMJUDELSON@YAHOO.COM","A1_last_month_open":"null","A1_zip_match":"0","A1_ipqs_email_message":"Success.","A1_ipqs_email_success":"true","A1_ipqs_email_valid":"true","A1_ipqs_email_disposable":"false","A1_ipqs_email_smtp_score":2,"A1_ipqs_email_overall_score":3,"A1_ipqs_email_first_name":"Adam","A1_ipqs_email_generic":"false","A1_ipqs_email_common":"true","A1_ipqs_email_dns_valid":"true","A1_ipqs_email_honeypot":"true","A1_ipqs_email_deliverability":"low","A1_ipqs_email_frequent_complainer":"true","A1_ipqs_email_spam_trap_score":"high","A1_ipqs_email_catch_all":"false","A1_ipqs_email_timed_out":"false","A1_ipqs_email_suspect":"false","A1_ipqs_email_recent_abuse":"false","A1_ipqs_email_fraud_score":0,"A1_ipqs_email_suggested_domain":"N/A","A1_ipqs_email_leaked":"true","A1_ipqs_email_sanitized_email":"adamjudelson@yahoo.com","A1_ipqs_email_domain_velocity":"high","A1_ipqs_email_user_activity":"high","A1_ipqs_email_associated_names":"","A1_mail_first-name-match":"1","A1_mail_first-4-match":"1","A1_mail_first-3-match":"1","A1_mail_firstn-first-letter-ln-5":"0","A1_mail_firstn-first-letter-ln-4":"0","A1_mail_firstn-first-letter-ln-3":"0","A1_mail_firstn-first-letter-dot-ln-5":"0","A1_mail_firstn-first-letter-dot-ln-4":"0","A1_mail_firstn-first-letter-dot-ln-3":"0","A1_mail_lastn-dot-firstn-first-letter":"0","A1_mail_first-letter-match-ln-partial-5":"0","A1_mail_first-letter-match-ln-partial-4":"0","A1_mail_first-letter-match-ln-partial-3":"0","A1_mail_lastn-firstn-first-letter":"0","A1_mail_sum":3,"A1_mail_nameSum":"1","A1_FN_IPQS":"1","A1_FN_ID":"high","A1anotherFN":"0","A1fn_text_found":0,"A1fn_text_appears":0,"A1fn_text_ratio":0,"A1firstName_firstLetter":"0","A1email_accurate":"0","I1_EMAIL_FREQ_#":0,"I2_EMAIL_FREQ_#":0,"I3_EMAIL_FREQ_#":0,"V1_EMAIL_FREQ_#":0,"A1_EMAIL_FREQ_#":1,"A1QualID":"low"}]}'
  },
  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)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: false,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    maxRequestsOnConnectionReached: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: true,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: null,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: false,
    socket: TLSSocket {
      _tlsOptions: [Object],
      _secureEstablished: true,
      _securePending: false,
      _newSessionPending: false,
      _controlReleased: true,
      secureConnecting: false,
      _SNICallback: null,
      servername: 'api.akkio.com',
      alpnProtocol: false,
      authorized: true,
      authorizationError: null,
      encrypted: true,
      _events: [Object: null prototype],
      _eventsCount: 10,
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'api.akkio.com',
      _readableState: [ReadableState],
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: undefined,
      _server: null,
      ssl: [TLSWrap],
      _requestCert: true,
      _rejectUnauthorized: true,
      parser: null,
      _httpMessage: [Circular *1],
      timeout: 600000,
      [Symbol(res)]: [TLSWrap],
      [Symbol(verified)]: true,
      [Symbol(pendingSession)]: null,
      [Symbol(async_id_symbol)]: 12134,
      [Symbol(kHandle)]: [TLSWrap],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: Timeout {
        _idleTimeout: 600000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 3290007,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 12142,
        [Symbol(triggerId)]: 12137
      },
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(kSetKeepAlive)]: true,
      [Symbol(kSetKeepAliveInitialDelay)]: 60,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(connect-options)]: [Object],
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'POST /v1/models HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'Content-Type: application/json\r\n' +
      'User-Agent: axios/1.2.2\r\n' +
      'Content-Length: 2025\r\n' +
      'Accept-Encoding: gzip, compress, deflate, br\r\n' +
      'Host: api.akkio.com\r\n' +
      'Connection: close\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: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: [Object],
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'POST',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/v1/models',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      socket: [TLSSocket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      rawHeaders: [Array],
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 400,
      statusMessage: 'Bad Request',
      client: [TLSSocket],
      _consuming: true,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'https://api.akkio.com/v1/models',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(kHeaders)]: [Object],
      [Symbol(kHeadersCount)]: 14,
      [Symbol(kTrailers)]: null,
      [Symbol(kTrailersCount)]: 0,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'api.akkio.com',
    protocol: 'https:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 2025,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'https://api.akkio.com/v1/models',
      _timeout: null,
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'content-type': [Array],
      'user-agent': [Array],
      'content-length': [Array],
      'accept-encoding': [Array],
      host: [Array]
    },
    [Symbol(kUniqueHeaders)]: null
  },
  response: {
    status: 400,
    statusText: 'Bad Request',
    headers: AxiosHeaders {
      date: 'Fri, 23 Jun 2023 13:55:12 GMT',
      'content-type': 'application/json',
      'content-length': '78',
      connection: 'close',
      server: 'uvicorn',
      'x-request-id': '736eeab1eebe4bbea21600b18ed1ce29',
      'x-correlation-id': '81017c6e9dd9469e939b018a327ae482'
    },
    config: {
      transitional: [Object],
      adapter: [Array],
      transformRequest: [Array],
      transformResponse: [Array],
      timeout: 600000,
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      env: [Object],
      validateStatus: [Function: validateStatus],
      headers: [AxiosHeaders],
      method: 'post',
      url: 'https://api.akkio.com/v1/models',
      data: '{"api_key":"70f8ade0-1712-495b-a337-f2f181456f0a","data":[{"ID":0,"firstName":"adam","lastName":"judelson","address":"5349 Shirley Avenue","city":"Tarzana","state":"CA","zipCode":"91356","A1Email":"ADAMJUDELSON@YAHOO.COM","A1_last_month_open":"null","A1_zip_match":"0","A1_ipqs_email_message":"Success.","A1_ipqs_email_success":"true","A1_ipqs_email_valid":"true","A1_ipqs_email_disposable":"false","A1_ipqs_email_smtp_score":2,"A1_ipqs_email_overall_score":3,"A1_ipqs_email_first_name":"Adam","A1_ipqs_email_generic":"false","A1_ipqs_email_common":"true","A1_ipqs_email_dns_valid":"true","A1_ipqs_email_honeypot":"true","A1_ipqs_email_deliverability":"low","A1_ipqs_email_frequent_complainer":"true","A1_ipqs_email_spam_trap_score":"high","A1_ipqs_email_catch_all":"false","A1_ipqs_email_timed_out":"false","A1_ipqs_email_suspect":"false","A1_ipqs_email_recent_abuse":"false","A1_ipqs_email_fraud_score":0,"A1_ipqs_email_suggested_domain":"N/A","A1_ipqs_email_leaked":"true","A1_ipqs_email_sanitized_email":"adamjudelson@yahoo.com","A1_ipqs_email_domain_velocity":"high","A1_ipqs_email_user_activity":"high","A1_ipqs_email_associated_names":"","A1_mail_first-name-match":"1","A1_mail_first-4-match":"1","A1_mail_first-3-match":"1","A1_mail_firstn-first-letter-ln-5":"0","A1_mail_firstn-first-letter-ln-4":"0","A1_mail_firstn-first-letter-ln-3":"0","A1_mail_firstn-first-letter-dot-ln-5":"0","A1_mail_firstn-first-letter-dot-ln-4":"0","A1_mail_firstn-first-letter-dot-ln-3":"0","A1_mail_lastn-dot-firstn-first-letter":"0","A1_mail_first-letter-match-ln-partial-5":"0","A1_mail_first-letter-match-ln-partial-4":"0","A1_mail_first-letter-match-ln-partial-3":"0","A1_mail_lastn-firstn-first-letter":"0","A1_mail_sum":3,"A1_mail_nameSum":"1","A1_FN_IPQS":"1","A1_FN_ID":"high","A1anotherFN":"0","A1fn_text_found":0,"A1fn_text_appears":0,"A1fn_text_ratio":0,"A1firstName_firstLetter":"0","A1email_accurate":"0","I1_EMAIL_FREQ_#":0,"I2_EMAIL_FREQ_#":0,"I3_EMAIL_FREQ_#":0,"V1_EMAIL_FREQ_#":0,"A1_EMAIL_FREQ_#":1,"A1QualID":"low"}]}'
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: false,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: true,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: null,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: false,
      socket: [TLSSocket],
      _header: 'POST /v1/models HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'Content-Type: application/json\r\n' +
        'User-Agent: axios/1.2.2\r\n' +
        'Content-Length: 2025\r\n' +
        'Accept-Encoding: gzip, compress, deflate, br\r\n' +
        'Host: api.akkio.com\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'POST',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/v1/models',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'api.akkio.com',
      protocol: 'https:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(kUniqueHeaders)]: null
    },
    data: {
      status: 'error',
      description: "{'status': 'no valid id provided'}"
    }
  }
}