Skip to main content

ApifyApiError

Error specific to requests to the Apify API.

An ApifyApiError is thrown for successful HTTP requests that reach the API, but the API responds with an error response. Typically, those are rate limit errors and internal errors, which are automatically retried, or validation errors, which are thrown immediately, because a correction by the user is needed.

Hierarchy

Index

Methods

Methods

__init__

  • __init__(response, attempt, method): None
  • Initialize a new instance.


    Parameters

    • response: impit.Response

      The response to the failed API call.

    • attempt: int

      Which attempt was the request that failed.

    • optionalmethod: str = 'GET'

      The HTTP method used for the request.

    Returns None

Page Options