diff --git a/client/src/utils/sendLogToSentry.ts b/client/src/utils/sendLogToSentry.ts index ba04e5077..692670dda 100644 --- a/client/src/utils/sendLogToSentry.ts +++ b/client/src/utils/sendLogToSentry.ts @@ -33,9 +33,10 @@ const sendLogToSentry = ({level = 'error', error, errorBody}: SendLogToSentry) = endpoint: error.endpoint, url: window.location.href, errorCode, - errorMessage: error.errorBody.message, + errorMessage: message, status: error.status, requestBody: JSON.stringify(error.requestBody), + method: error.status, }); Sentry.captureMessage(`${errorCode}`);