Skip to content

document.location is null #356

Closed
@pkaminski

Description

@pkaminski

This is one of those "this couldn't possibly happen" bugs, but I occasionally get the following exception from raven-js (which then ironically gets reported to Sentry correctly!):

TypeError: document.location is null
/js/bower_components/raven-js/dist/raven.js ? in getHttpData at line 1742:8
/js/bower_components/raven-js/dist/raven.js ? in send at line 1763:17
/js/bower_components/raven-js/dist/raven.js ? in processException at line 1707:4
/js/bower_components/raven-js/dist/raven.js ? in handlers at line 1588:4
/js/bower_components/raven-js/dist/raven.js ? in notifyHandlers at line 137:20
/js/bower_components/raven-js/dist/raven.js ? in processLastException at line 223:8
/js/bower_components/raven-js/dist/raven.js ? in func at line 254:16
/js/bower_components/raven-js/dist/raven.js ? in func at line 1251:23

This seems to only happen in Firefox within 1 second of the page loading and I expect it's some kind of browser or plugin bug, but perhaps it's worth guarding against anyway?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions