OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 222 forks source link

Raven not working on production #955

Closed jjhampton closed 6 years ago

jjhampton commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

sethbergman commented 6 years ago

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