Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/angular
SDK Version
8.52.0
Framework Version
19.1.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/cobyeastwood183/angular
error.json
{
"headers": {
"headers": {},
"normalizedNames": {},
"lazyUpdate": null
},
"status": 0,
"statusText": "Unknown Error",
"url": "http://some.example.com/test",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for http://some.example.com/test: 0 Unknown Error",
"error": {
"isTrusted": true
}
}
Steps to Reproduce
- npm install
- add DSN
- npm start
- visit http://localhost:4200/test
- click button "Test API 2(Localhost)"
Expected Result
Expect a HttpException to be captured for HttpErrorResponse.
Actual Result
Instead 'unknown' is captured when caught by the ErrorHandler or 'Object.error' when caught by calling captureException.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/angular
SDK Version
8.52.0
Framework Version
19.1.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/cobyeastwood183/angular
error.json
{ "headers": { "headers": {}, "normalizedNames": {}, "lazyUpdate": null }, "status": 0, "statusText": "Unknown Error", "url": "http://some.example.com/test", "ok": false, "name": "HttpErrorResponse", "message": "Http failure response for http://some.example.com/test: 0 Unknown Error", "error": { "isTrusted": true } }Steps to Reproduce
Expected Result
Expect a HttpException to be captured for HttpErrorResponse.
Actual Result
Instead 'unknown' is captured when caught by the ErrorHandler or 'Object.error' when caught by calling captureException.