question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
niftylettucecommented, Dec 5, 2019

Re-opened. We will resolve this.

5reactions
ubershmekelcommented, Nov 15, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found