-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular5 Http error - Cannot parse given error object #202
Comments
I am seeing this as well. Interested in the proper way to workaround this or handle it. |
For now, I'm just not sending these Errors to stacktrace.js:
|
With ExtJS i had the same problem. This should be because in chrome user defined exceptions dont have a stacktrace by default. As there is nothing to parse Example with standard javascript:
For ExtJS i just overwritten the constructor of the default exception. |
@JoeScylla not sure about this, but according to this |
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
The text was updated successfully, but these errors were encountered: