fix(tracker): add guard for axios empty response on error
This commit is contained in:
parent
eb78fb193d
commit
2df3e2220b
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ export default function (
|
|||
|
||||
function captureNetworkError(error: Record<string, any>) {
|
||||
app.debug.log('Openreplay: capturing API request error', error)
|
||||
if (isAxiosError(error)) {
|
||||
if (isAxiosError(error) && Boolean(error.response)) {
|
||||
captureResponseData(error.response as AxiosResponse)
|
||||
} else if (error instanceof Error) {
|
||||
app.send(getExceptionMessage(error, []))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue