InvalidResponseBodyError
Hierarchy
- Error
- InvalidResponseBodyError
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
response: AxiosResponse<any, any>
cause: Error
Returns InvalidResponseBodyError
Properties
cause
code
externalinheritedmessage
externalinheritedname
response
externaloptionalinheritedstack
staticexternaloptionalinheritedprepareStackTrace
Optional override for formatting stack traces
Type declaration
Parameters
externalerr: Error
externalstackTraces: CallSite[]
Returns any
staticexternalinheritedstackTraceLimit
Methods
staticexternalinheritedcaptureStackTrace
Create .stack property on a target object
Parameters
externaltargetObject: object
externaloptionalconstructorOpt: Function
Returns void
This error exists for the quite common situation, where only a partial JSON response is received and an attempt to parse the JSON throws an error. In most cases this can be resolved by retrying the request. We do that by identifying this error in HttpClient.
The properties mimic AxiosError for easier integration in HttpClient error handling.