[object Event] on line undefined of undefined? WTF?

Eric Hamilton's Avatar

Eric Hamilton

19 Nov, 2010 08:48 PM

What on earth does this mean? =)

[object Event]

Time
19 Nov at 06:38PM
URL
undefined
Params
{"browser url" : "http://www.ericleads.com/h5validate/"} User Agent
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
HTTP headers
Host
http://www.ericleads.com/h5validate/
Version
HTTP/1.1
User-Agent
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Environment
REQUEST_METHOD

  1. 1 Posted by Ciaran Lee on 22 Nov, 2010 02:30 PM

    Ciaran Lee's Avatar

    Hi Eric,

    We have been seeing a few of those ourselves. I'm not certain what is causing it, but it must be that an exception occurs which somehow has no message, url or line number.

    We are limited as to the amount of information we can get when a javascript exception occurs. I'd really like to include backtrace information but it seems that exceptions that occur inside jQuery's document.ready then crash the notifier...

    In case you are interested, the (very simple) notifier source is here

    Kind regards,
    Ciaran Lee

  2. Ciaran Lee closed this discussion on 22 Nov, 2010 02:30 PM.

  3. Ciaran Lee re-opened this discussion on 13 Dec, 2010 01:20 PM

  4. 2 Posted by Ciaran Lee on 13 Dec, 2010 01:20 PM

    Ciaran Lee's Avatar

    Hi Eric,

    I'm just looking at this issue again. I have only seen it occur on google chrome (which is not supposed to support window.onerror - the method we use to track JS exceptions). There is currently work ongoing to webkit to add support for window.onerror. It's possible that the Chrome guys are doing something similar, and maybe it's not yet working properly.

    It seems that window.onerror is not always called with legal arguments (they are supposed to be strings). I have been working on the js notifier to try to give more sensible error messages where this happens, and will continue to do so.

    Best regards,
    Ciaran Lee

  5. 3 Posted by Eric Hamilton on 13 Dec, 2010 01:34 PM

    Eric Hamilton's Avatar

    Thanks for the update, Ciaran. I appreciate your attention to your
    customers.

    By the way, I am considering a cross-browser JavaScript logging framework.
    Does exceptional ONLY work on browsers that support window.onerror, or can I
    trigger logging with custom events that work on all our supported browsers?

    If it depends on window.onerror, is that behavior that I can override?

    - Eric

    On Mon, Dec 13, 2010 at 8:20 AM, Ciaran Lee <
    [email blocked]<tender%[email blocked]>
    > wrote:

  6. 4 Posted by Ciaran Lee on 13 Dec, 2010 02:21 PM

    Ciaran Lee's Avatar

    Hi Eric,

    Exceptional works out of the box on browsers that support window.onerror.
    However you are free to report your own exceptions using:
    Exceptional.handle(msg,url,line).

    The source is here<https://github.com/contrast/exceptional-js/blob/master/public/exceptional.js>,
    it's uses a simplified version of our API (that is GET rather than POST
    based) and logs the exception by appending an iframe to the document.

    Best regards,
    Ciaran Lee

    On 13 December 2010 13:34, Eric Hamilton <
    [email blocked]<tender%[email blocked]>
    > wrote:

  7. 5 Posted by Robert on 15 Feb, 2013 07:07 PM

    Robert's Avatar

    Hi, this is Robert with support, I am clearing out old tickets. If you are still having issues with this, send an email to [email blocked].

    Thanks,
    Robert

  8. Robert closed this discussion on 15 Feb, 2013 07:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac