-
Notifications
You must be signed in to change notification settings - Fork 54
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
Problem doing manual error reporting #64
Comments
It seems that the Stackdriber Error Reporting expects stacktraces formatted as such Would you mind providing an exact sample that reproduces the issue? |
I am cranking for a deadline but will make a reminder to look at this ... hopefully next week. |
I have reproduced this in our deployment, issue is not related to calling report directly, but comes from Example response: {
"error": {
"code": 400,
"message": "ReportedErrorEvent.context must contain a location unless `message` contain an exception or stacktrace.",
"status": "INVALID_ARGUMENT"
}
} Example message from request:
The section of code from PruneCluster: window.setTimeout(function () {
for (i = 0, l = markers.length; i < l; ++i) {
_this._map.removeLayer(markers[i]);
}
}, 300); This would be correctly reported as Workarounds at the stackdriver-errors-js level are possible, if a bit awkward? Could use something like isVarName to strip out badly detection function names. See also stacktracejs/stacktrace-gps#54 which is another problem with this part of the JS parsing. |
Seeing something similar in 0.8.0: Payload:
Response:
|
Hi, I have code that does:
but the stackdriver API response is:
The request that is sent to stackdriver is:
What is the recommendation? Do I have to annotate the error object somehow?
Unhandled exceptions are reported correctly.
Using Chrome, btw.
The text was updated successfully, but these errors were encountered: