not working with chrome? Cannot parse given Error object
See original GitHub issue window.onerror = function (msg, file, line, col, error) {
StackTrace.fromError(error, line).then(callback).catch(errback);
}
var errback = function (err) {
console.log(err.message);
};
var callback = function (stackframes) {
var stringifiedStack = stackframes.map(function (sf) {
return sf.toString();
}).join('\n');
};
Cannot parse given Error object adding,
window.onerror = function (msg, file, line, col, error) {
StackTrace.fromError(error, line).then(callback).catch(errback);
}
var errback = function (err) {
console.log(new Error("from onerror").stack);
};
var callback = function (stackframes) {
var stringifiedStack = stackframes.map(function (sf) {
return sf.toString();
}).join('\n');
};
Error: from onerror at errback (PatientRegistration:1590) at anonymous
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Cannot parse given Error object - StackTrace JS - Stack ...
I'm getting this error in chrome. I am getting it when passing back a Response from http in Angular 4. How will I...
Read more >not working with chrome? Cannot parse given Error object
Cannot parse given Error object. ... line).then(callback).catch(errback); } var errback = function (err) { console.log(err.message); }; var ...
Read more >How to Fix: Cannot Parse Response in Safari Browser?
Check DNS and Use Google DNS. Having the “Cannot parse response error” in the Safari browser is very unlikely due to DNS issues...
Read more >Treat failure to parse certificates as SSL protocol errors. (issue ...
+// The SSL server presented a certificate which could not be decoded. This is +// not a certificate error code as now X509Certificate...
Read more >Error.prototype.stack - JavaScript - MDN Web Docs - Mozilla
would appear in the converted form "[object Object]" , and as such could not be evaluated back into the actual objects, scalar values...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Re-opened. We will resolve this.
@rgfactory an error may be in a 3rd party library, or a programmer made a mistake. A library designed to handle errors shouldn’t break in the face of a common error.