Issue
Currently, JS based error events can indicate which request caused the error, but they do not include the request and response body.
Applies To
- All plans
- Error Monitoring
- JS based SDKs
Resolution
You could try using our HttpClient integration. This integration captures errors on failed requests from Fetch and XHR and attaches request and response information. Please keep in mind that it requires you to install
@sentry/integrations
next to your main SDK package.