Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Raven not working on production #955

Closed
jjhampton opened this issue Apr 23, 2018 · 3 comments · Fixed by #980
Closed

Raven not working on production #955

jjhampton opened this issue Apr 23, 2018 · 3 comments · Fixed by #980

Comments

@jjhampton
Copy link
Member

Bug Report

What is the current behavior?

Getting console errors indicating that Raven (client-side logging library) is not working on production.

What is the expected behavior?

No console errors.

What steps did you take to get this behavior?

Navigate to www.operationcode.org, open DevTools and look at console.

Additional Info

Screenshots

selection_045

Possibly related to PR #932. Labelling this as low, since Raven hasn't helped us much, and may not be configured properly.

@ZacharyKearns
Copy link

ZacharyKearns commented Apr 23, 2018

Looking at the window object on the OC page shows that Raven is defined. Makes me think it is being called before the script loads. One possible solution is to check to make sure it is defined first.

if (window.Raven) { Raven.config(...).install() }

@jjhampton
Copy link
Member Author

Assigning self as placeholder for @ZacharyKearns - currently reviewing PR.

@sethbergman
Copy link
Member

@jjhampton @ZacharyKearns I'm about to push a possible solution. I'm not able to see if it's catching any errors, but I've setup the code according to the docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.