Skip to content

Angular5 Http error - Cannot parse given error object #202

Open
@toonborgers

Description

@toonborgers

I'm creating an Angular5 app with Typescript and was trying to add stacktrace-js for proper error handling.

When I was testing my setup using a failing http request (404 response), I get an error from stacktrace-js that the error can't be parsed.

Expected Behavior

The error can be parsed correctly.

Current Behavior

The error can't be parsed.

Steps to Reproduce (for bugs)

Set up an environment as in following gist and start the dev server. When the component does the request and it fails, the error handler gets triggered and the described behaviour occurs.

Gist

Context

I was trying to setup error handling for an angular app

Your Environment

  • stacktrace.js version: 2.0.0 (typings version: 0.0.32)
  • Browser Name and version: Chrome 63.0.3239.132
  • Operating System and version (desktop or mobile): macOS Sierra 10.12.6
  • Angular CLI version: 1.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions