Error that indicate that the request was throttled.

Hierarchy (view full)

Constructors

  • Parameters

    • body: {
          error: {
              code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
              message: string;
          };
      }
      • error: {
            code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
            message: string;
        }
        • code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed"

          Description

          Error code: * RequestCannotBeParsed - the query parameters or JSON payload contains some errors that prevented us from parsing it (wrong type/surpassed limits). * TokenRequired - Auth-API-Key header is missing or empty. * TokenNotFound - no Fingerprint application found for specified secret key. * SubscriptionNotActive - Fingerprint application is not active. * WrongRegion - server and application region differ. * FeatureNotEnabled - this feature (for example, Delete API) is not enabled for your application. * RequestNotFound - the specified request ID was not found. It never existed, expired, or it has been deleted. * VisitorNotFound - The specified visitor ID was not found. It never existed or it may have already been deleted. * TooManyRequests - the limit on secret API key requests per second has been exceeded. * 429 Too Many Requests - the limit on secret API key requests per second has been exceeded. * StateNotReady - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * Failed - internal server error.

        • message: string
    • response: Response

    Returns TooManyRequestsError

Properties

cause?: unknown
errorCode: string
message: string
name: string
response: Response
responseBody: {
    error: {
        code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
        message: string;
    };
}

Type declaration

  • error: {
        code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
        message: string;
    }
    • code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed"

      Description

      Error code: * RequestCannotBeParsed - the query parameters or JSON payload contains some errors that prevented us from parsing it (wrong type/surpassed limits). * TokenRequired - Auth-API-Key header is missing or empty. * TokenNotFound - no Fingerprint application found for specified secret key. * SubscriptionNotActive - Fingerprint application is not active. * WrongRegion - server and application region differ. * FeatureNotEnabled - this feature (for example, Delete API) is not enabled for your application. * RequestNotFound - the specified request ID was not found. It never existed, expired, or it has been deleted. * VisitorNotFound - The specified visitor ID was not found. It never existed or it may have already been deleted. * TooManyRequests - the limit on secret API key requests per second has been exceeded. * 429 Too Many Requests - the limit on secret API key requests per second has been exceeded. * StateNotReady - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * Failed - internal server error.

    • message: string
retryAfter: number = 0

Number of seconds to wait before retrying the request.

Remarks

The value is parsed from the Retry-After header of the response.

stack?: string
statusCode: 429
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • body: {
          error: {
              code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
              message: string;
          };
      }
      • error: {
            code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
            message: string;
        }
        • code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed"

          Description

          Error code: * RequestCannotBeParsed - the query parameters or JSON payload contains some errors that prevented us from parsing it (wrong type/surpassed limits). * TokenRequired - Auth-API-Key header is missing or empty. * TokenNotFound - no Fingerprint application found for specified secret key. * SubscriptionNotActive - Fingerprint application is not active. * WrongRegion - server and application region differ. * FeatureNotEnabled - this feature (for example, Delete API) is not enabled for your application. * RequestNotFound - the specified request ID was not found. It never existed, expired, or it has been deleted. * VisitorNotFound - The specified visitor ID was not found. It never existed or it may have already been deleted. * TooManyRequests - the limit on secret API key requests per second has been exceeded. * 429 Too Many Requests - the limit on secret API key requests per second has been exceeded. * StateNotReady - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * Failed - internal server error.

        • message: string
    • response: Response

    Returns RequestError<number, {
        error: {
            code: "RequestCannotBeParsed" | "TokenRequired" | "TokenNotFound" | "SubscriptionNotActive" | "WrongRegion" | "FeatureNotEnabled" | "RequestNotFound" | "VisitorNotFound" | "TooManyRequests" | "429 Too Many Requests" | "StateNotReady" | "Failed";
            message: string;
        };
    }>