InvalidResponseBodyError
Hierarchy
- Error
- InvalidResponseBodyError
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
response: AxiosResponse<any>
cause: Error
Returns InvalidResponseBodyError
Properties
cause
code
externalmessage
externalname
response
externaloptionalstack
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
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.