ApifyApiError
Hierarchy
- Error
- ApifyApiError
Index
Constructors
constructor
Parameters
response: AxiosResponse<any>
attempt: number
Returns ApifyApiError
Properties
attempt
Number of the API call attempt.
externaloptionalcause
clientMethod
The invoked resource client and the method. Known issue: Sometimes it displays
as unknown
because it can't be parsed from a stack trace.
optionalhttpMethod
HTTP method of the API call.
externalmessage
name
originalStack
Original stack trace of the exception. It is replaced by a more informative stack with API call information.
optionalpath
Full path of the API endpoint (URL excluding origin).
externaloptionalstack
statusCode
HTTP status code of the error.
optionaltype
The type of the error, as returned by the API.
staticexternaloptionalprepareStackTrace
Type declaration
Optional override for formatting stack traces
Parameters
err: Error
stackTraces: CallSite[]
Returns any
staticexternalstackTraceLimit
Methods
staticexternalcaptureStackTrace
Create .stack property on a target object
Parameters
externaltargetObject: object
externaloptionalconstructorOpt: Function
Returns void
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.