-
Notifications
You must be signed in to change notification settings - Fork 281
Problem in sending error report using Stacktrace.report #133
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
Comments
Can you check in DevTools what data is actually send? |
Before sending data, I console.logged the stackframes found from |
I'm assuming |
I think you're right, @oliversalzburg. Would you have a bit of time to submit a PR for this? It should be noted that |
@oliversalzburg My gut says a simple JSON3 seems like a good choice for a polyfill. |
@eriwen I'll try to submit a PR tonight, shouldn't be too much work. :) |
@sarker306 It would be cool if you could give #135 a try. |
I tried this fix, and yeah, it works nicely. Thanks a lot. |
@sarker306 Awesome, thanks for verifying. I will publish a new version next week unless I can squeeze it in tonight :) |
Includes JSON3 in the polyfill version Fixes #133
I am using express 4.0 and I'm trying to send client side error from my angular app to server. I have exposed StackTrace as an angular service stacktraceService.
If I catch the error manually, and send them via a POST request like this:
The server side code can parse the req.body using "json()" method of express/body-parser and show it correctly.
However, if I use the stacktrace.js report functionality, like,
,then the server side code finds the req.body undefined.
I was wondering what the cause would be. Am I using .report() functionality wrong?
The text was updated successfully, but these errors were encountered: