Skip to content

HttpErrorResponse Capturing Problem #15239

Open
@cobyeastwood183

Description

@cobyeastwood183

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

Steps to Reproduce

  1. npm install
  2. add DSN
  3. npm start
  4. visit http://localhost:4200/test
  5. 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.

Metadata

Metadata

Assignees

Labels

Package: angularIssues related to the Sentry Angular SDK

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions